Struct thingvellir::ShutdownHandle
source · pub struct ShutdownHandle { /* private fields */ }
Implementations§
source§impl ShutdownHandle
impl ShutdownHandle
sourcepub fn gracefully_shutdown(self) -> GracefulShutdownHandle
pub fn gracefully_shutdown(self) -> GracefulShutdownHandle
Begin gracefully shutting down, returning a GracefulShutdownHandle
that can be used to interact with the
shutdown further.
Note: Dropping the GracefulShutdownHandle
will cause a hard shutdown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShutdownHandle
impl !RefUnwindSafe for ShutdownHandle
impl Send for ShutdownHandle
impl !Sync for ShutdownHandle
impl Unpin for ShutdownHandle
impl !UnwindSafe for ShutdownHandle
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