Trait hyper_util::server::graceful::GracefulConnection
source · 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.