Module nix_compat::wire::bytes::writer
source · Structs§
- Writes a “bytes wire packet” to the underlying writer. The format is the same as in crate::wire::bytes::write_bytes, however this structure provides a AsyncWrite interface, allowing to not having to pass around the entire payload in memory.
Enums§
- Models the position inside a “bytes wire packet” that the writer is in. It can be in three different stages, inside size, payload or padding fields. The number tracks the number of bytes written inside the specific field. There shall be no ambiguous states, at the end of a stage we immediately move to the beginning of the next one:
Functions§
- Returns an error if the passed usize is 0.