pub trait CloseableClientSender {
type Transport: Transport;
// Required method
fn close(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, Close>, EncodeError>;
}
Expand description
A helper trait for the Closeable
client sender.
Required Associated Types§
Required Methods§
Sourcefn close(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, Close>, EncodeError>
fn close( &self, ) -> Result<ResponseFuture<'_, Self::Transport, Close>, EncodeError>
Terminates the connection.
After calling Close
, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close
without knowing when the close has completed or its
status.
Implementations on Foreign Types§
Source§impl<___T> CloseableClientSender for ClientSender<___T, Closeable>where
___T: Transport,
impl<___T> CloseableClientSender for ClientSender<___T, Closeable>where
___T: Transport,
Source§fn close(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, Close>, EncodeError>
fn close( &self, ) -> Result<ResponseFuture<'_, Self::Transport, Close>, EncodeError>
Terminates the connection.
After calling Close
, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close
without knowing when the close has completed or its
status.