Struct rxdp::XDPObject [−][src]
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]
&self,
maps: &HashSet<String>,
path: Option<&str>
) -> XDPResult<()>
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
impl RefUnwindSafe for XDPObject
[src]
impl !Send for XDPObject
[src]
impl !Sync for XDPObject
[src]
impl Unpin for XDPObject
[src]
impl UnwindSafe for XDPObject
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,