Enum shell_protocol::error::ProtocolError
source · [−]pub enum ProtocolError {
CborError {
err: ProtocolError,
},
ChannelError {
err: ProtocolError,
},
KillError {
err: Error,
},
MessageCreationError {
message: String,
err: Error,
},
MessageParseError {
err: String,
},
ProcesssError {
action: String,
err: Error,
},
ReceiveTimeout,
ReceiveError {
err: String,
},
SpawnError {
cmd: String,
err: Error,
},
ReadTimeout,
}
Expand description
Errors which occur when using ShellProtocol
Variants
CborError
Fields
err: ProtocolError
The specific CBOR protocol error
An error was raised by the cbor protocol
ChannelError
Fields
err: ProtocolError
The specific channel protocol error
An error was encountered in the channel protocol
KillError
An error was encountered when killing a process
MessageCreationError
An error was encountered when creating a message
MessageParseError
Fields
err: String
Underlying error encountered
A general error was encountered when parsing a message
ProcesssError
A general error was raised by the process
ReceiveTimeout
A timeout occurred when receiving data
ReceiveError
Fields
err: String
Underlying error encountered
An error was encountered when receiving a message
SpawnError
An error was encountered when spawning a process
ReadTimeout
A timeout was encountered when reading data
Trait Implementations
sourceimpl Debug for ProtocolError
impl Debug for ProtocolError
sourceimpl Display for ProtocolError
impl Display for ProtocolError
sourceimpl Fail for ProtocolError
impl Fail for ProtocolError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
sourceimpl From<ProtocolError> for ProtocolError
impl From<ProtocolError> for ProtocolError
sourcefn from(error: ProtocolError) -> Self
fn from(error: ProtocolError) -> Self
Converts to this type from the input type.
sourceimpl From<ProtocolError> for ProtocolError
impl From<ProtocolError> for ProtocolError
sourcefn from(error: ProtocolError) -> Self
fn from(error: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl !UnwindSafe for ProtocolError
Blanket Implementations
impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more