Trait libbpf_rs::skel::Skel

source ·
pub trait Skel {
    // Required methods
    fn object(&self) -> &Object;
    fn object_mut(&mut self) -> &mut Object;

    // Provided method
    fn attach(&mut self) -> Result<()> { ... }
}
Expand description

A trait for loaded skeleton.

Required Methods§

source

fn object(&self) -> &Object

Get a reference to Object.

source

fn object_mut(&mut self) -> &mut Object

Get a mutable reference to Object.

Provided Methods§

source

fn attach(&mut self) -> Result<()>

Attach BPF object.

Implementors§