[][src]Struct redbpf::Module

pub struct Module {
    pub programs: Vec<Program>,
    pub maps: Vec<Map>,
    pub license: String,
    pub version: u32,
}

Fields

programs: Vec<Program>maps: Vec<Map>license: Stringversion: u32

Implementations

impl Module[src]

pub fn parse(bytes: &[u8]) -> Result<Module>[src]

pub fn kprobes(&self) -> impl Iterator<Item = &KProbe>[src]

pub fn kprobes_mut(&mut self) -> impl Iterator<Item = &mut KProbe>[src]

pub fn uprobes(&self) -> impl Iterator<Item = &UProbe>[src]

pub fn uprobes_mut(&mut self) -> impl Iterator<Item = &mut UProbe>[src]

pub fn xdps(&self) -> impl Iterator<Item = &XDP>[src]

pub fn xdps_mut(&mut self) -> impl Iterator<Item = &mut XDP>[src]

pub fn socket_filters(&self) -> impl Iterator<Item = &SocketFilter>[src]

pub fn socket_filters_mut(&mut self) -> impl Iterator<Item = &mut SocketFilter>[src]

pub fn trace_points(&self) -> impl Iterator<Item = &TracePoint>[src]

pub fn trace_points_mut(&mut self) -> impl Iterator<Item = &mut TracePoint>[src]

Auto Trait Implementations

impl RefUnwindSafe for Module

impl Send for Module

impl Sync for Module

impl Unpin for Module

impl UnwindSafe for Module

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.