pub enum Error {
Deserialize(Error),
Initialization(Box<dyn Error>),
IO(Error),
MessageType,
Serialize(Error),
Shutdown,
TestIO,
UnexpectedMsg {
expected: &'static str,
},
}
Expand description
Errors the library may return to the application
Variants§
Deserialize(Error)
A message could not be deserialized
Initialization(Box<dyn Error>)
Initialization of a process::Process failed
IO(Error)
An IO operation failed
MessageType
The expected deserialized message type does not match the serialized data
Serialize(Error)
A message could not be serialized
Shutdown
The runtime has shutdown before the process completed
TestIO
Testing only
UnexpectedMsg
A process received a message that was unexpected for the current state or protocol
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()
impl Send for Error
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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