Crate compio_buf

Source
Expand description

Utilities for working with buffers.

Completion 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 safety contract.

Re-exports§

pub use arrayvec;arrayvec
pub use bumpalo;bumpalo
pub use bytes;bytes

Macros§

buf_try
A helper macro to imitate the behavior of try trait ?.

Structs§

BufResult
A specialized Result type for operations with buffers.
IndexedIter
An owned iterator over an indexable container.
IoSlice
An unsafe, 'static, initialized, and immutable slice of bytes to interact with system API.
IoSliceMut
An unsafe, 'static, maybe uninitialized, and mutable slice of bytes to interact with system API.
Slice
An owned view into a contiguous sequence of bytes.

Enums§

MaybeOwned
A type that’s either owned or borrowed. Like Cow but without the requirement of ToOwned.
MaybeOwnedMut
A type that’s either owned or mutably borrowed .

Traits§

Indexable
A trait for vectored buffers that could be indexed.
IndexableMut
A trait for vectored buffers that could be mutably indexed.
IntoInner
Trait to get the inner buffer of an operation or a result.
IoBuf
A trait for buffers.
IoBufMut
A mutable compio compatible buffer.
IoVectoredBuf
A trait for vectored buffers.
IoVectoredBufMut
A trait for mutable vectored buffers.
OwnedIterator
The inner implementation of a [OwnedIter].
SetBufInit
A helper trait for set_len like methods.