Enum simpl_actor::ActorError
source · pub enum ActorError<E = ()> {
ActorNotRunning(E),
ActorStopped,
MailboxFull(E),
Timeout(E),
}Expand description
Error that can occur when sending a message to an actor.
Variants§
ActorNotRunning(E)
The actor isn’t running.
ActorStopped
The actor panicked or was stopped.
MailboxFull(E)
The actors mailbox is full and sending would require blocking.
Timeout(E)
The actor’s mailbox remained full, and the timeout elapsed.
Trait Implementations§
source§impl<E: Clone> Clone for ActorError<E>
impl<E: Clone> Clone for ActorError<E>
source§fn clone(&self) -> ActorError<E>
fn clone(&self) -> ActorError<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<E> Debug for ActorError<E>
impl<E> Debug for ActorError<E>
source§impl<E> Display for ActorError<E>
impl<E> Display for ActorError<E>
source§impl<E: Debug> Error for ActorError<E>
impl<E: Debug> Error for ActorError<E>
1.30.0 · 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<E: PartialEq> PartialEq for ActorError<E>
impl<E: PartialEq> PartialEq for ActorError<E>
source§fn eq(&self, other: &ActorError<E>) -> bool
fn eq(&self, other: &ActorError<E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<E: Copy> Copy for ActorError<E>
impl<E: Eq> Eq for ActorError<E>
impl<E> StructuralPartialEq for ActorError<E>
Auto Trait Implementations§
impl<E> Freeze for ActorError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ActorError<E>where
E: RefUnwindSafe,
impl<E> Send for ActorError<E>where
E: Send,
impl<E> Sync for ActorError<E>where
E: Sync,
impl<E> Unpin for ActorError<E>where
E: Unpin,
impl<E> UnwindSafe for ActorError<E>where
E: 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