Struct hyper_util::server::graceful::GracefulShutdown
source · 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