Module mz_ore::netio

source ยท
Available on crate feature network only.
Expand description

Network I/O utilities.

Modulesยง

Structsยง

Enumsยง

Constantsยง

  • The maximum allowable size of a frame in a framed stream.

Traitsยง

Functionsยง

  • Creates a future which will read exactly enough bytes to fill buf, unless EOF is reached first. If a short read should be considered an error, use tokio::io::AsyncReadExt::read_exact instead.
  • Resolves a host address and ensures it is a global address when enforce_global is set. This parameter is useful when connecting to user-defined unverified addresses.