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 OpenMap
s and OpenProgram
s.
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 OpenMap
s.
Note that this will include automatically generated .data, .rodata, .bss, and
.kconfig maps.
Get an iterator over mutable references to all OpenMap
s.
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 OpenProgram
s.
Get an iterator over mutable references to all OpenProgram
s.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpenObject
impl !Send for OpenObject
impl !Sync for OpenObject
impl Unpin for OpenObject
impl UnwindSafe for OpenObject