Struct afxdp::umem::Umem[][src]

pub struct Umem<'a, T: Default + Copy> { /* fields omitted */ }

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]

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.