Crate split_channel

Source
Expand description

split_channel provides a stream-of-messages abstraction with split send/recv channels. Most calls that establish a channel return a tuple of (RecvChannel, SendChannel).

The key idea here is that an &mut RecvChannel and &mut SendChannel exist for the same SslStream<TcpStream>, allowing parallel sending and processing of messages. The general pattern is to lock the send channel, send data, and then use sync42::wait_list::WaitList to synchronize receivers.

Structs§

ConservingWrapper
Epoll
Listener
RecvChannel
SendChannel
SplitChannelOptions
ThreadState

Constants§

POLLERR
POLLHUP
POLLIN
POLLOUT

Traits§

OsPoll
Poll
ProcessEvents

Functions§

default_poll
from_epoll_constants
from_stream
register_biometrics
to_poll_constants