Struct rxdp::XDPObject[][src]

pub struct XDPObject { /* fields omitted */ }

Convenience wrapper around an XDP object

Implementations

impl XDPObject[src]

pub fn new(file_path: &str) -> XDPResult<Self>[src]

Read the ELF file at file_path and attempt to create a bpf object

pub fn pinned_maps(
    &self,
    maps: &HashSet<String>,
    path: Option<&str>
) -> XDPResult<()>
[src]

Loads any previously pinned maps from the fs and/or sets maps to be pinned. Will use path if provided, else defaults to /sys/fs/bpf/ when looking for/pinning maps.

pub fn load(self) -> XDPResult<XDPLoadedObject>[src]

Load eBPF maps and programs into the kernel

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, 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.