pub struct RuntimeShutdownHandle { /* private fields */ }Expand description
Cloneable shutdown-only controller for one runtime.
Implementations§
Source§impl RuntimeShutdownHandle
impl RuntimeShutdownHandle
Sourcepub async fn shutdown(
&self,
options: ShutdownOptions,
) -> RuntimeResult<ShutdownReport>
pub async fn shutdown( &self, options: ShutdownOptions, ) -> RuntimeResult<ShutdownReport>
Starts or joins shutdown and returns the one cached redacted report.
Trait Implementations§
Source§impl Clone for RuntimeShutdownHandle
impl Clone for RuntimeShutdownHandle
Source§fn clone(&self) -> RuntimeShutdownHandle
fn clone(&self) -> RuntimeShutdownHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for RuntimeShutdownHandle
impl !UnwindSafe for RuntimeShutdownHandle
impl Freeze for RuntimeShutdownHandle
impl Send for RuntimeShutdownHandle
impl Sync for RuntimeShutdownHandle
impl Unpin for RuntimeShutdownHandle
impl UnsafeUnpin for RuntimeShutdownHandle
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