pub trait GracefulConnection: Future<Output = Result<(), Self::Error>> + Sealed {
type Error;
// Required method
fn graceful_shutdown(self: Pin<&mut Self>);
}
Expand description
An internal utility trait as an umbrella target for all (hyper) connection
types that the GracefulShutdown
can watch.
Required Associated Types§
Required Methods§
Sourcefn graceful_shutdown(self: Pin<&mut Self>)
fn graceful_shutdown(self: Pin<&mut Self>)
Start a graceful shutdown process for this connection.