Enum xdpsock::AccessError[][src]

pub enum AccessError {
    NullRegion,
    RegionOutOfBounds {
        addr: usize,
        len: usize,
        umem_len: usize,
    },
    CrossesFrameBoundary {
        addr: usize,
        len: usize,
    },
}

UMEM access errors

Variants

NullRegion

Attempted to access a region with zero length.

RegionOutOfBounds

Attempted to access a region outside of the UMEM.

Show fields

Fields of RegionOutOfBounds

addr: usizelen: usizeumem_len: usize
CrossesFrameBoundary

Attempted to access a region that intersects with two or more frames.

Show fields

Fields of CrossesFrameBoundary

addr: usizelen: usize

Trait Implementations

impl Debug for AccessError[src]

impl Display for AccessError[src]

impl Error for AccessError[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> ToString for T where
    T: Display + ?Sized
[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.