pub struct GracefulShutdown { /* private fields */ }
Available on crate features
server
and server-graceful
only.Expand description
A graceful shutdown utility
Implementations§
Source§impl GracefulShutdown
impl GracefulShutdown
Sourcepub fn watch<C: GracefulConnection>(
&self,
conn: C,
) -> impl Future<Output = C::Output>
pub fn watch<C: GracefulConnection>( &self, conn: C, ) -> impl Future<Output = C::Output>
Wrap a future for graceful shutdown watching.
Trait Implementations§
Source§impl Debug for GracefulShutdown
impl Debug for GracefulShutdown
Auto Trait Implementations§
impl Freeze for GracefulShutdown
impl !RefUnwindSafe for GracefulShutdown
impl Send for GracefulShutdown
impl Sync for GracefulShutdown
impl Unpin for GracefulShutdown
impl !UnwindSafe for GracefulShutdown
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