pub enum ReadMessageError {
ProcessNotFound(ProcessId),
ManagerCommunicationError(RecvError),
MessageReaderNotFound(ProcessId),
MessageReaderKilled,
}
Expand description
Error type returned when subscribing to a messages stream.
Variants§
ProcessNotFound(ProcessId)
The process with given ID was not found (the ID is wrong or the process has been already killed).
ManagerCommunicationError(RecvError)
Cannot communicate with spawned process manager. Probably process manager task has been aborted.
MessageReaderNotFound(ProcessId)
Cannot get messages stream because a MessagingType
has not been configured for the process.
MessageReaderKilled
The task used to read messages from 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 ReadMessageError
impl Debug for ReadMessageError
Source§impl Display for ReadMessageError
impl Display for ReadMessageError
Source§impl Error for ReadMessageError
impl Error for ReadMessageError
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 ReadMessageError
impl RefUnwindSafe for ReadMessageError
impl Send for ReadMessageError
impl Sync for ReadMessageError
impl Unpin for ReadMessageError
impl UnwindSafe for ReadMessageError
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