pub enum WriteMessageError {
ProcessNotFound(ProcessId),
CannotSerializeMessage(String),
ManagerCommunicationError(RecvError),
IoError(Error),
MessageWriterNotFound(ProcessId),
}
Expand description
Error type returned when sending a message to the process.
Variants§
ProcessNotFound(ProcessId)
The process with given ID was not found (the ID is wrong or the process has been already killed).
CannotSerializeMessage(String)
Cannot serialize message to bytes. Includes error message.
ManagerCommunicationError(RecvError)
Cannot communicate with spawned process manager. Probably process manager task has been aborted.
IoError(Error)
An unexpected IO error occurred when sending a message to the process.
MessageWriterNotFound(ProcessId)
The task used to send messages to a process has been killed.
This error “shouldn’t” normally occur because the task is aborted when a process is being killed. And after this ProcessNotFound
will be returned.
Trait Implementations§
Source§impl Debug for WriteMessageError
impl Debug for WriteMessageError
Source§impl Display for WriteMessageError
impl Display for WriteMessageError
Source§impl Error for WriteMessageError
impl Error for WriteMessageError
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<Error> for WriteMessageError
impl From<Error> for WriteMessageError
Auto Trait Implementations§
impl Freeze for WriteMessageError
impl !RefUnwindSafe for WriteMessageError
impl Send for WriteMessageError
impl Sync for WriteMessageError
impl Unpin for WriteMessageError
impl !UnwindSafe for WriteMessageError
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