Module buf

Source
Expand description

Utilities for working with buffers.

IOCP APIs require passing ownership of buffers to the runtime. The crate defines IoBuf and IoBufMut traits which are implemented by buffer types that respect the IOCP contract.

Structs§

BufWrapper
Holds an immutable IO buffer and IoSlice.
BufWrapperMut
Holds an mutable IO buffer and IoSliceMut.
Slice
An owned view into a contiguous sequence of bytes.
VectoredBufWrapper
Fixed slice of IO buffers.

Traits§

IntoInner
Trait to get the inner buffer of an operation or a result.
IoBuf
An IOCP compatible buffer.
IoBufMut
A mutable IOCP compatible buffer.