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]>>),
}

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(PhantomData<&'a mut [u8]>)

Keeps a reference to a slice

BoxedSlice(Box<dyn Borrow<[u8]>>)

Generic thing that keeps a buffer from dropping

BoxedMutSlice(Box<dyn BorrowMut<[u8]>>)

Generic thing that keeps a mutable buffer from dropping

Trait Implementations

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for Buffer<'a>

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.