pub struct Shutdown(/* private fields */);
Expand description
Describes the running status of a Runtime
.
Primary used when the gracefull shutdown is enabled, some actors may use it to control the runtime in which they are launched.
Implementations§
Trait Implementations§
source§impl AsRef<Arc<AtomicBool>> for Shutdown
impl AsRef<Arc<AtomicBool>> for Shutdown
source§fn as_ref(&self) -> &Arc<AtomicBool>
fn as_ref(&self) -> &Arc<AtomicBool>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Shutdown
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
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