Skip to main content

Module asynch

Module asynch 

Source
Expand description

The loops of drive_stream and drive_messages over tokio streams and async message transports.

Traits§

MessageTransport
An asynchronous transport of whole messages.

Functions§

complete_messages
complete_messages over an async message transport: the handshake once complete, not yet finished.
complete_messages_until
complete_messages that ends at deadline, as drive_stream_until does.
complete_stream
complete_stream over a tokio stream: the handshake once complete, not yet finished.
complete_stream_until
complete_stream that ends at deadline, as drive_stream_until does.
drive_messages
drive_messages over an async message transport.
drive_messages_until
drive_messages that ends at deadline, as drive_stream_until does.
drive_stream
drive_stream over a tokio stream.
drive_stream_until
drive_stream that ends at deadline, through tokio::time: the runtime must have its timer enabled (tokio panics otherwise).
read_frame
read_frame over a tokio stream: the buffer grows as bytes arrive.
write_frame
write_frame over a tokio stream.