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§

Macros§

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

Structs§

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

Enums§

Traits§