pub enum BufferType<'buf> {
None,
Pinned(Pin<&'buf mut [u8]>),
Registered(RegisteredBuffer),
Vectored(Vec<Pin<&'buf mut [u8]>>),
}Expand description
Buffer type for operations.
This enum represents the different types of buffers that can be used with operations, supporting both regular pinned buffers and registered buffers.
Variants§
None
No buffer (for operations like accept)
Pinned(Pin<&'buf mut [u8]>)
Regular pinned buffer
Registered(RegisteredBuffer)
Registered buffer with the registry
Vectored(Vec<Pin<&'buf mut [u8]>>)
Multiple pinned buffers for vectored I/O
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for BufferType<'buf>
impl<'buf> RefUnwindSafe for BufferType<'buf>
impl<'buf> Send for BufferType<'buf>
impl<'buf> Sync for BufferType<'buf>
impl<'buf> Unpin for BufferType<'buf>
impl<'buf> !UnwindSafe for BufferType<'buf>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more