Struct xdpsock::SocketConfig[][src]

pub struct SocketConfig { /* fields omitted */ }

Config for a Socket.

rx_queue_size and tx_queue_size must be powers of two.

Implementations

impl SocketConfig[src]

pub fn new(
    rx_queue_size: u32,
    tx_queue_size: u32,
    libbpf_flags: LibbpfFlags,
    xdp_flags: XdpFlags,
    bind_flags: BindFlags
) -> Result<Self, SocketConfigError>
[src]

pub fn rx_queue_size(&self) -> u32[src]

pub fn tx_queue_size(&self) -> u32[src]

pub fn libbpf_flags(&self) -> &LibbpfFlags[src]

pub fn xdp_flags(&self) -> &XdpFlags[src]

pub fn bind_flags(&self) -> &BindFlags[src]

Trait Implementations

impl Clone for SocketConfig[src]

impl Debug for SocketConfig[src]

impl Default for SocketConfig[src]

fn default() -> Self[src]

Default configuration based on constants set in the libbpf library with none of the flags set.

impl PartialEq<SocketConfig> for SocketConfig[src]

impl StructuralPartialEq for SocketConfig[src]

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.