pub trait Connection {
// Required method
fn graceful_shutdown(self: Pin<&mut Self>);
}
Available on crate feature
server
only.Expand description
A connection that can be gracefully shutdown.
Required Methods§
Sourcefn graceful_shutdown(self: Pin<&mut Self>)
fn graceful_shutdown(self: Pin<&mut Self>)
Gracefully shutdown the connection.