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

pub enum Buffer<'a> {
    None,
    Bytes(Bytes),
    BytesMut(BytesMut),
    Phantom(PhantomData<&'a mut [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.

Immutable shared ownership Bytes object

Mutable uniquely owned BytesMut object

Keeps a reference to a slice

Methods

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

[src]

Return the inner Bytes, if any

[src]

Return the inner BytesMut, if any

[src]

Is this Buffer None?

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more