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.

Modules§

  • arrayvec provides the types ArrayVec and ArrayString: array-backed vector and string types, which store their contents inline.
  • bumpalo
  • Provides abstractions for working with bytes.

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§