pub enum DeliverError<M>where
M: Message,{
Full(M),
Closed(M),
}Available on crate feature
actor only.Expand description
A message rejected by a mailbox or broker.
Variants§
Implementations§
Source§impl<M> DeliverError<M>where
M: Message,
impl<M> DeliverError<M>where
M: Message,
Sourcepub fn into_inner(self) -> M
pub fn into_inner(self) -> M
Recovers the rejected message.
Trait Implementations§
Source§impl<M> Debug for DeliverError<M>
impl<M> Debug for DeliverError<M>
Source§impl<M> Display for DeliverError<M>where
M: Message,
impl<M> Display for DeliverError<M>where
M: Message,
impl<M> Eq for DeliverError<M>
Source§impl<M> Error for DeliverError<M>
impl<M> Error for DeliverError<M>
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()
Source§impl<M> PartialEq for DeliverError<M>
impl<M> PartialEq for DeliverError<M>
impl<M> StructuralPartialEq for DeliverError<M>
Auto Trait Implementations§
impl<M> Freeze for DeliverError<M>where
M: Freeze,
impl<M> RefUnwindSafe for DeliverError<M>where
M: RefUnwindSafe,
impl<M> Send for DeliverError<M>
impl<M> Sync for DeliverError<M>where
M: Sync,
impl<M> Unpin for DeliverError<M>where
M: Unpin,
impl<M> UnsafeUnpin for DeliverError<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for DeliverError<M>where
M: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more