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 Drop
ing 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]>)
Tuple Fields
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