Expand description
Prelude: networking
The purpose of this module is to expose Tokio network types used in Kvarn.
Re-exports§
pub use crate::application::TcpStreamAsyncWrapper as TcpStream;async-networking
Modules§
- Prelude for async utilities for use in web applications.
Structs§
- Helper struct for
read_to_async. - TcpListener
async-networkingA TCP socket server, listening for connections. - UdpSocket
async-networkingA UDP socket.
Functions§
- Reads from
readertobufferuntil it returns zero bytes ormax_lengthis reached.BytesMut::lenis used as a starting length ofbuffer. Note thatmax_lenis a suggestion and will probably be overran.