Trait CloseableServerHandler

Source
pub trait CloseableServerHandler<___T: Transport> {
    // Required method
    fn close(
        &mut self,
        sender: &ServerSender<___T, Closeable>,
        responder: Responder<Close>,
    );
}
Expand description

A server handler for the Closeable protocol.

See Closeable for more details.

Required Methods§

Source

fn close( &mut self, sender: &ServerSender<___T, Closeable>, responder: Responder<Close>, )

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.

Implementors§