pub struct BufMmap<'a, T>where
T: Default,{ /* private fields */ }Expand description
BufMMap is the Buf implementation to be used with AF_XDP sockets (MMapArea, Umem, Socket).
Trait Implementations§
Source§impl<T> Buf<T> for BufMmap<'_, T>where
T: Default,
impl<T> Buf<T> for BufMmap<'_, T>where
T: Default,
Source§fn get_data_mut(&mut self) -> &mut [u8] ⓘ
fn get_data_mut(&mut self) -> &mut [u8] ⓘ
Returns a mutable reference to the u8 slice of the buffer
Source§fn get_capacity(&self) -> u16
fn get_capacity(&self) -> u16
Returns the total capacity of the buffer
Source§fn get_len(&self) -> u16
fn get_len(&self) -> u16
Returns the length of the portion of the buffer that contains packet data
Source§fn set_len(&mut self, len: u16)
fn set_len(&mut self, len: u16)
Sets the length of the portion of the buffer that is contains packet data
Source§fn get_user_mut(&mut self) -> &mut T
fn get_user_mut(&mut self) -> &mut T
Returns a mutable reference to the embeded user struct
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for BufMmap<'a, T>
impl<'a, T> Freeze for BufMmap<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for BufMmap<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for BufMmap<'a, T>where
T: Send,
impl<'a, T> Sync for BufMmap<'a, T>where
T: Sync,
impl<'a, T> Unpin for BufMmap<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for BufMmap<'a, T>where
T: UnsafeUnpin,
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