Enum tiny_actor::errors::TrySendError
source · [−]pub enum TrySendError<M> {
Closed(M),
Full(M),
}Expand description
An error returned when trying to send a message into a channel.
Variants
Closed(M)
The channel has been closed, and no longer accepts new messages.
Full(M)
The channel is full.
Trait Implementations
sourceimpl<M: Clone> Clone for TrySendError<M>
impl<M: Clone> Clone for TrySendError<M>
sourcefn clone(&self) -> TrySendError<M>
fn clone(&self) -> TrySendError<M>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<M: Debug> Debug for TrySendError<M>
impl<M: Debug> Debug for TrySendError<M>
sourceimpl<M> Display for TrySendError<M>
impl<M> Display for TrySendError<M>
sourceimpl<M> Error for TrySendError<M> where
Self: Debug + Display,
impl<M> Error for TrySendError<M> where
Self: Debug + Display,
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<M> From<PushError<M>> for TrySendError<M>
impl<M> From<PushError<M>> for TrySendError<M>
sourceimpl<M: Hash> Hash for TrySendError<M>
impl<M: Hash> Hash for TrySendError<M>
sourceimpl<M: PartialEq> PartialEq<TrySendError<M>> for TrySendError<M>
impl<M: PartialEq> PartialEq<TrySendError<M>> for TrySendError<M>
sourcefn eq(&self, other: &TrySendError<M>) -> bool
fn eq(&self, other: &TrySendError<M>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TrySendError<M>) -> bool
fn ne(&self, other: &TrySendError<M>) -> bool
This method tests for !=.
impl<M: Eq> Eq for TrySendError<M>
impl<M> StructuralEq for TrySendError<M>
impl<M> StructuralPartialEq for TrySendError<M>
Auto Trait Implementations
impl<M> RefUnwindSafe for TrySendError<M> where
M: RefUnwindSafe,
impl<M> Send for TrySendError<M> where
M: Send,
impl<M> Sync for TrySendError<M> where
M: Sync,
impl<M> Unpin for TrySendError<M> where
M: Unpin,
impl<M> UnwindSafe for TrySendError<M> where
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more