pub struct AppSpindownToken { /* private fields */ }
Expand description
A token issued for every workload registered with
AppSpindownRegistry
.
This token allows the workload to indicate that it has gracefully completed and cleaned up its resources.
Implementations§
Source§impl AppSpindownToken
impl AppSpindownToken
Sourcepub fn punch_out(&self)
pub fn punch_out(&self)
Indicate that the workload associated with this AppSpindownToken
has completed its
spindown procedure, whatever it might be.
This method is automatically called from the token’s Drop
implementation, so allowing
the token to go out of scope is an alternative way to conveniently punch out.
Trait Implementations§
Source§impl Drop for AppSpindownToken
impl Drop for AppSpindownToken
Source§fn drop(&mut self)
fn drop(&mut self)
Convenience implementation of Drop
that allows the owners of the AppSpindownToken
to punch out by simply allowing the token to go out of scope.
Auto Trait Implementations§
impl Freeze for AppSpindownToken
impl RefUnwindSafe for AppSpindownToken
impl Send for AppSpindownToken
impl Sync for AppSpindownToken
impl Unpin for AppSpindownToken
impl UnwindSafe for AppSpindownToken
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