pub trait GracefulConnection: Future<Output = Result<(), Self::Error>> + Sealed {
type Error;
// Required method
fn graceful_shutdown(self: Pin<&mut Self>);
}
Available on crate features
server
and server-graceful
only.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.
Implementations on Foreign Types§
Source§impl<I, B, S> GracefulConnection for Connection<I, S>
Available on crate feature http1
only.
impl<I, B, S> GracefulConnection for Connection<I, S>
Available on crate feature
http1
only.Source§impl<I, B, S, E> GracefulConnection for Connection<I, S, E>
Available on crate feature http2
only.
impl<I, B, S, E> GracefulConnection for Connection<I, S, E>
Available on crate feature
http2
only.Implementors§
Source§impl<'a, I, B, S, E> GracefulConnection for hyper_util::server::conn::auto::Connection<'a, I, S, E>
Available on crate feature server-auto
only.
impl<'a, I, B, S, E> GracefulConnection for hyper_util::server::conn::auto::Connection<'a, I, S, E>
Available on crate feature
server-auto
only.Source§impl<'a, I, B, S, E> GracefulConnection for UpgradeableConnection<'a, I, S, E>
Available on crate feature server-auto
only.
impl<'a, I, B, S, E> GracefulConnection for UpgradeableConnection<'a, I, S, E>
Available on crate feature
server-auto
only.