Module hyper_util::server::graceful
source · Available on crate features
server
and server-graceful
only.Expand description
Utility to gracefully shutdown a server.
This module provides a GracefulShutdown
type,
which can be used to gracefully shutdown a server.
See https://github.com/hyperium/hyper-util/blob/master/examples/server_graceful.rs for an example of how to use this.
Structs§
- A graceful shutdown utility
Traits§
- An internal utility trait as an umbrella target for all (hyper) connection types that the
GracefulShutdown
can watch.