Enum nix::sys::aio::Buffer[][src]

pub enum Buffer<'a> {
    None,
    Phantom(PhantomData<&'a mut [u8]>),
    BoxedSlice(Box<dyn Borrow<[u8]>>),
    BoxedMutSlice(Box<dyn BorrowMut<[u8]>>),
}
Expand description

Owns (uniquely or shared) a memory buffer to keep it from Droping while the kernel has a pointer to it.

Variants

None

No buffer to own.

Used for operations like aio_fsync that have no data, or for unsafe operations that work with raw pointers.

Phantom

Keeps a reference to a slice

Tuple Fields of Phantom

0: PhantomData<&'a mut [u8]>
BoxedSlice

Generic thing that keeps a buffer from dropping

Tuple Fields of BoxedSlice

0: Box<dyn Borrow<[u8]>>
BoxedMutSlice

Generic thing that keeps a mutable buffer from dropping

Tuple Fields of BoxedMutSlice

0: Box<dyn BorrowMut<[u8]>>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.