pub trait Loopback {
    type RequestStream: Stream<Item = Request>;
    type ResponseSink: Sink<Response> + Unpin;
    fn split(self) -> (Self::RequestStream, Self::ResponseSink);
}
Expand description

Trait implemented by client loopback sockets.

This socket handles the server-to-client half of the bidirectional communication stream.

Associated Types

Yields a stream of pending server-to-client requests.

Routes client-to-server responses back to the server.

Required methods

Splits this socket into two halves capable of operating independently.

The two halves returned implement the [Stream] and [Sink] traits, respectively.

Implementors