Struct xdpsock::UmemConfigBuilder[][src]

pub struct UmemConfigBuilder { /* fields omitted */ }

Builder for UmemConfig for a UmemConfig.

Implementations

impl UmemConfigBuilder[src]

pub fn new() -> Self[src]

pub fn frame_count(&mut self, frame_count: u32) -> &mut Self[src]

pub fn frame_size(&mut self, frame_size: u32) -> &mut Self[src]

pub fn fill_queue_size(&mut self, fill_queue_size: u32) -> &mut Self[src]

pub fn comp_queue_size(&mut self, comp_queue_size: u32) -> &mut Self[src]

pub fn frame_headroom(&mut self, frame_headroom: u32) -> &mut Self[src]

pub fn use_huge_pages(&mut self, use_huge_pages: bool) -> &mut Self[src]

pub fn build(&self) -> Result<UmemConfig, UmemConfigError>[src]

Trait Implementations

impl Clone for UmemConfigBuilder[src]

impl Debug for UmemConfigBuilder[src]

impl Default for UmemConfigBuilder[src]

fn default() -> Self[src]

Default configuration based on constants set in the libbpf library.

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.