Module kvarn::prelude::networking
source · 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-networking
A TCP socket server, listening for connections. - UdpSocket
async-networking
andnet
A UDP socket.
Functions§
- Reads from
reader
tobuffer
until it returns zero bytes ormax_length
is reached.BytesMut::len
is used as a starting length ofbuffer
.