pub struct ShutdownView { /* private fields */ }Expand description
A read-only view of the shutdown signal of a ShutdownHandle.
A view reports the same state as the handle that it came from. But a view is not a handle: it does not count as an
outstanding handle, so ShutdownCoordinator::shutdown_and_wait does not wait for it, and it cannot be awaited.
Implementations§
Source§impl ShutdownView
impl ShutdownView
Sourcepub fn is_triggered(&self) -> bool
pub fn is_triggered(&self) -> bool
Returns true if shutdown has been triggered.
Trait Implementations§
Source§impl Clone for ShutdownView
impl Clone for ShutdownView
Source§fn clone(&self) -> ShutdownView
fn clone(&self) -> ShutdownView
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ShutdownView
impl RefUnwindSafe for ShutdownView
impl Send for ShutdownView
impl Sync for ShutdownView
impl Unpin for ShutdownView
impl UnsafeUnpin for ShutdownView
impl UnwindSafe for ShutdownView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self> ⓘ
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self> ⓘ
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read more