Struct xdpsock::Socket[][src]

pub struct Socket<'umem> { /* fields omitted */ }

An AF_XDP socket.

More details can be found in the docs

Implementations

impl Socket<'_>[src]

pub fn new<'a, 'umem>(
    config: SocketConfig,
    umem: &mut Umem<'umem>,
    if_name: &'a str,
    queue_id: u32
) -> Result<(TxQueue<'umem>, RxQueue<'umem>), SocketCreateError>
[src]

Create and bind a new AF_XDP socket to a given interface and queue id.

May require root permissions to create and bind.

Trait Implementations

impl<'umem> Debug for Socket<'umem>[src]

impl Drop for Socket<'_>[src]

Auto Trait Implementations

impl<'umem> RefUnwindSafe for Socket<'umem>

impl<'umem> Send for Socket<'umem>

impl<'umem> Sync for Socket<'umem>

impl<'umem> Unpin for Socket<'umem>

impl<'umem> UnwindSafe for Socket<'umem>

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.