libbpf_rs::skel

Trait Skel

Source
pub trait Skel<'obj> {
    // 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§