pub unsafe trait AsIoBufs {
    fn as_iobufs(&mut self) -> &[IoBufMut<'_>];
}
Expand description

A trait for describing regions of memory to be used for IO.

Safety

Types that implement this trait must guarantee that the memory regions described by as_iobufs() are valid for the lifetime of the borrow.

Required Methods

Returns a slice describing regions of memory on which to perform some IO. The returned memory region descriptions may be passed on to the OS kernel so implmentations must guarantee that the memory regions are valid for the lifetime of the borrow.

Implementors