pub enum TimeoutError {
Show 19 variants
Spawn(Command, Error),
TakeStdin,
TakeStdout,
TakeStderr,
TryWait(Error),
ReadMucn,
Read(Error),
TooMuch(&'static str),
JoinStdinFeeder,
FeedStdin(Error),
JoinChildMonitor,
JoinStdoutReader,
JoinStderrReader,
Kill(Error),
Wait(Error),
MutexLock,
ChildRecv(RecvError),
ChildSend(SendError<(Child, bool)>),
ChildSendToLine(SendError<()>),
}
Variants§
Spawn(Command, Error)
Couldn’t spawn child process.
TakeStdin
Couldn’t get file descriptor of child process stdin.
TakeStdout
Couldn’t get file descriptor of child process stdout.
TakeStderr
Couldn’t get file descriptor of child process stderr.
TryWait(Error)
Couldn’t check if child process is still running.
ReadMucn
Reading from child stdout or stderr returned too much data.
Read(Error)
Reading from child stdout or stderr failed.
TooMuch(&'static str)
Channel buffer got full, which means child process wrote too much output.
JoinStdinFeeder
Couldn’t join thread that feeds data to child stdin.
FeedStdin(Error)
Couldn’t write to child stdin.
JoinChildMonitor
JoinStdoutReader
Couldn’t join thread that reads child stdout.
JoinStderrReader
Couldn’t join thread that reads child stderr.
Kill(Error)
Couldn’t terminate child process.
Wait(Error)
Couldn’t wait for child process to terminate.
MutexLock
Mutex lock error.
ChildRecv(RecvError)
ChildSend(SendError<(Child, bool)>)
ChildSendToLine(SendError<()>)
Trait Implementations§
Source§impl Debug for TimeoutError
impl Debug for TimeoutError
Source§impl Display for TimeoutError
impl Display for TimeoutError
Source§impl Error for TimeoutError
impl Error for TimeoutError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TimeoutError> for AdapterError
impl From<TimeoutError> for AdapterError
Source§fn from(source: TimeoutError) -> Self
fn from(source: TimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimeoutError
impl !RefUnwindSafe for TimeoutError
impl Send for TimeoutError
impl Sync for TimeoutError
impl Unpin for TimeoutError
impl !UnwindSafe for TimeoutError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more