Struct libbpf_rs::OpenObject[][src]

pub struct OpenObject { /* fields omitted */ }
Expand description

Represents an opened (but not yet loaded) BPF object file.

Use this object to access OpenMaps and OpenPrograms.

Implementations

Takes ownership from pointer.

Safety

If ptr is unopen or already loaded then further operations on the returned object are undefined.

It is not safe to manipulate ptr after this operation.

Takes underlying libbpf_sys::bpf_object pointer.

Get a reference to OpenMap with the name name, if one exists.

Get a mutable reference to OpenMap with the name name, if one exists.

Get an iterator over references to all OpenMaps. Note that this will include automatically generated .data, .rodata, .bss, and .kconfig maps.

Get an iterator over mutable references to all OpenMaps. Note that this will include automatically generated .data, .rodata, .bss, and .kconfig maps.

Get a reference to OpenProgram with the name name, if one exists.

Get a mutable reference to OpenProgram with the name name, if one exists.

Get an iterator over references to all OpenPrograms.

Get an iterator over mutable references to all OpenPrograms.

Load the maps and programs contained in this BPF object into the system.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.