Enum simpl_actor::ActorStopReason
source · pub enum ActorStopReason<E> {
Normal,
Panicked,
StartFailed(E),
RestartFailed(E),
}Expand description
Reason for an actor being stopped.
Variants§
Normal
Actor stopped normally.
Panicked
Actor panicked.
StartFailed(E)
Actor failed to start.
RestartFailed(E)
Actor failed to restart.
Trait Implementations§
source§impl<E: Clone> Clone for ActorStopReason<E>
impl<E: Clone> Clone for ActorStopReason<E>
source§fn clone(&self) -> ActorStopReason<E>
fn clone(&self) -> ActorStopReason<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> Debug for ActorStopReason<E>
impl<E: Debug> Debug for ActorStopReason<E>
source§impl<E: Display> Display for ActorStopReason<E>
impl<E: Display> Display for ActorStopReason<E>
source§impl<E: PartialEq> PartialEq for ActorStopReason<E>
impl<E: PartialEq> PartialEq for ActorStopReason<E>
source§fn eq(&self, other: &ActorStopReason<E>) -> bool
fn eq(&self, other: &ActorStopReason<E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<E: Copy> Copy for ActorStopReason<E>
impl<E: Eq> Eq for ActorStopReason<E>
impl<E> StructuralPartialEq for ActorStopReason<E>
Auto Trait Implementations§
impl<E> Freeze for ActorStopReason<E>where
E: Freeze,
impl<E> RefUnwindSafe for ActorStopReason<E>where
E: RefUnwindSafe,
impl<E> Send for ActorStopReason<E>where
E: Send,
impl<E> Sync for ActorStopReason<E>where
E: Sync,
impl<E> Unpin for ActorStopReason<E>where
E: Unpin,
impl<E> UnwindSafe for ActorStopReason<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