Enum xtra::KeepRunning
source · [−]pub enum KeepRunning {
Yes,
StopSelf,
StopAll,
}
Expand description
Whether to keep the actor running after it has been put into a stopping state.
Variants
Yes
Keep the actor running and prevent it from being stopped
StopSelf
Stop only this actor
StopAll
Stop all actors on this address
Trait Implementations
sourceimpl Clone for KeepRunning
impl Clone for KeepRunning
sourcefn clone(&self) -> KeepRunning
fn clone(&self) -> KeepRunning
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 Debug for KeepRunning
impl Debug for KeepRunning
sourceimpl From<()> for KeepRunning
impl From<()> for KeepRunning
sourcefn from(_: ()) -> KeepRunning
fn from(_: ()) -> KeepRunning
Converts to this type from the input type.
sourceimpl From<bool> for KeepRunning
impl From<bool> for KeepRunning
True is converted to yes, and false is converted to stop all.
sourceimpl PartialEq<KeepRunning> for KeepRunning
impl PartialEq<KeepRunning> for KeepRunning
impl Copy for KeepRunning
impl Eq for KeepRunning
impl StructuralEq for KeepRunning
impl StructuralPartialEq for KeepRunning
Auto Trait Implementations
impl RefUnwindSafe for KeepRunning
impl Send for KeepRunning
impl Sync for KeepRunning
impl Unpin for KeepRunning
impl UnwindSafe for KeepRunning
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