Skip to main content

Crate compio_buf

Crate compio_buf 

Source
Expand description

Buffer utilities for completion-based IO.

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.
Reader
Adapts an IoBuf to implement the std::io::Read trait.
ReaderRef
Adapts a reference to IoBuf to std::io::Read trait.
Slice
An owned view into a contiguous sequence of bytes.
Uninit
A Slice that only exposes uninitialized bytes.
VectoredBufIter
An owned iterator over a vectored buffer.
VectoredSlice
Return type for IoVectoredBuf::slice and IoVectoredBufMut::slice_mut.
Writer
Adapts an IoBufMut to implement the std::io::Write trait.
WriterRef
Adapts a mutable reference to IoBufMut to std::io::Write trait.

Enums§

ReserveError
An error indicating that reserving capacity for a buffer failed.
ReserveExactError
An error indicating that reserving exact capacity for a buffer failed.

Traits§

IntoInner
Trait to get the inner buffer of an operation or a result.
IoBuf
A trait for immutable buffers.
IoBufMut
A trait for mutable buffers.
IoVectoredBuf
A trait for vectored buffers.
IoVectoredBufMut
A trait for mutable vectored buffers.
SetLen
A helper trait for set_len like methods.