pub enum TevError {
Command {
io: Error,
},
Stdout {
io: Error,
},
NoSocketResponse {
read: String,
},
TcpConnect {
host: String,
io: Error,
},
IO {
io: Error,
},
}Expand description
The error type returned by TevClient::spawn in case of an error.
For convenience, this type implements From<std::io::Error> so the errors returned by TevClient::send
can be wrapped into this type by the ? operator.
Variants§
Command
Error during command execution.
Stdout
Error while reading from stdout of the spawned process.
NoSocketResponse
Tev didn’t respond with an address to connect to on stdout.
read is the data that was read before stdout closed.
TcpConnect
There was an error opening or writing to the TCP connection.
host is the address received from tev we’re trying to connect to.
IO
There was some other IO error. This variant exits to make the ? more convenient to use.
Trait Implementations§
Source§impl Error for TevError
impl Error for TevError
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()
Auto Trait Implementations§
impl Freeze for TevError
impl !RefUnwindSafe for TevError
impl Send for TevError
impl Sync for TevError
impl Unpin for TevError
impl !UnwindSafe for TevError
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