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

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

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

Variants

No buffer to own.

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

Keeps a reference to a slice

Generic thing that keeps a buffer from dropping

Generic thing that keeps a mutable buffer from dropping

Trait Implementations

impl<'a> Debug for Buffer<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !Send for Buffer<'a>

impl<'a> !Sync for Buffer<'a>