Struct xdpsock::umem::Umem[][src]

pub struct Umem<'a> { /* fields omitted */ }

A region of virtual contiguous memory divided into equal-sized frames. It provides the underlying working memory for an AF_XDP socket.

Implementations

impl Umem<'_>[src]

pub fn builder(config: UmemConfig) -> UmemBuilder[src]

pub fn config(&self) -> &UmemConfig[src]

Config used for building the UMEM.

pub fn mtu(&self) -> usize[src]

The maximum transmission unit, this determines the largest packet that may be sent.

Equal to frame_size - (XDP_PACKET_HEADROOM + frame_headroom).

Auto Trait Implementations

impl<'a> RefUnwindSafe for Umem<'a>

impl<'a> Send for Umem<'a>

impl<'a> !Sync for Umem<'a>

impl<'a> Unpin for Umem<'a>

impl<'a> UnwindSafe for Umem<'a>

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.