Trait GracefulConnection

pub trait GracefulConnection: Future<Output = Result<(), Self::Error>> + Sealed

An internal utility trait as an umbrella target for all (hyper) connection types that the GracefulShutdown can watch.

Associated Types

type Error;

The error type returned by the connection when used as a future.

Required Methods

fn graceful_shutdown(self: Pin<&mut Self>)

Start a graceful shutdown process for this connection.

Implementors