Module io_buffers

Source
Expand description

Types for I/O buffers.

This module provides:

  • buffer types that can be allocated with arbitrary alignment,
  • references to buffers that more or less ensure the content is read only once (because it can change for buffers owned by VM guests),
  • buffer vector types.

Macros§

impl_io_vector 🔒
Implement most of both IoVector and IoVectorMut.

Structs§

IoBuffer
Owned memory buffer.
IoBufferMut
Reference to any mutable memory buffer.
IoBufferRef
Reference to any immutable memory buffer.
IoVector
Vector of memory buffers.
IoVectorMut
Vector of memory buffers.
VolatileSliceGuard
Ensures an I/O vector’s validity when created from [VolatileSlice].

Traits§

IoBufferRefTrait 🔒
Common functions for both IoBufferRef and IoBufferMut.
IoVectorTrait 🔒
Common functions for both IoVector and IoVectorMut.