Module nix_compat::wire

source ·
Expand description

Module parsing and emitting the wire format used by Nix, both in the nix-daemon protocol as well as in the NAR format.

Modules§

Structs§

Functions§

  • Read a “bytes wire packet” from the AsyncRead. Rejects reading more than allowed_size bytes of payload.
  • Read a “bytes wire packet” of from the AsyncRead and tries to parse as string. Internally uses read_bytes. Rejects reading more than allowed_size bytes of payload.
  • Writes a “bytes wire packet” to a (hopefully buffered) AsyncWriteExt.