Skip to main content

RequestChannel

Type Alias RequestChannel 

Source
pub type RequestChannel<C> = (Sender<Arc<Mutex<dyn Handler<Codec = C>>>>, Receiver<Arc<Mutex<dyn Handler<Codec = C>>>>);
Expand description

The request channel, used to move out tcp stream out of server control.

When the stream is moved, the server does not owns it anymore.

If is there need to return stream, only reconnect is available.