Enum lunatic::MailboxError
source · pub enum MailboxError {
DeserializationFailed(DecodeError),
TimedOut,
}Expand description
An error returned when receiving from a mailbox.
Variants§
DeserializationFailed(DecodeError)
Message failed to be deserialized.
TimedOut
Receive message timed out.
Implementations§
source§impl MailboxError
impl MailboxError
sourcepub fn is_timed_out(&self) -> bool
pub fn is_timed_out(&self) -> bool
Returns true if the error is a MailboxError::TimedOut.
sourcepub fn is_deserialization_failed(&self) -> bool
pub fn is_deserialization_failed(&self) -> bool
Returns true if the error is a MailboxError::DeserializationFailed.
Trait Implementations§
source§impl Debug for MailboxError
impl Debug for MailboxError
source§impl Display for MailboxError
impl Display for MailboxError
source§impl Error for MailboxError
impl Error for MailboxError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for MailboxError
impl From<DecodeError> for MailboxError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MailboxError
impl Send for MailboxError
impl Sync for MailboxError
impl Unpin for MailboxError
impl !UnwindSafe for MailboxError
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