Struct afxdp::umem::Umem [−][src]
The Umem is a shared region of memory, backed by MMap, that is shared between userspace and the NIC(s). Bufs (descriptors) represent packets stored in this area.
Implementations
impl<'a, T: Default + Copy> Umem<'a, T>
[src]
pub fn new(
area: Arc<MmapArea<'a, T>>,
completion_ring_size: u32,
fill_ring_size: u32
) -> Result<(Arc<Umem<'a, T>>, UmemCompletionQueue<'a, T>, UmemFillQueue<'a, T>), UmemNewError>
[src]
area: Arc<MmapArea<'a, T>>,
completion_ring_size: u32,
fill_ring_size: u32
) -> Result<(Arc<Umem<'a, T>>, UmemCompletionQueue<'a, T>, UmemFillQueue<'a, T>), UmemNewError>
Create a new Umem using the passed memory mapped area.
pub fn get_ptr(&self) -> *const xsk_umem
[src]
Trait Implementations
impl<'a, T: Debug + Default + Copy> Debug for Umem<'a, T>
[src]
impl<'a, T: Default + Copy> Drop for Umem<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Umem<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Umem<'a, T>
impl<'a, T> Sync for Umem<'a, T>
impl<'a, T> Unpin for Umem<'a, T>
impl<'a, T> UnwindSafe for Umem<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,