pub type Map<'obj> = MapImpl<'obj>;Expand description
An immutable loaded BPF map.
Aliased Type§
pub struct Map<'obj> { /* private fields */ }Implementations§
Source§impl<'obj> Map<'obj>
impl<'obj> Map<'obj>
Sourcepub fn new(map: &'obj bpf_map) -> Self
pub fn new(map: &'obj bpf_map) -> Self
Create a Map from a libbpf_sys::bpf_map.
Sourcepub fn get_pin_path(&self) -> Option<&OsStr>
pub fn get_pin_path(&self) -> Option<&OsStr>
Returns the pin_path if the map is pinned, otherwise, None
is returned.
Sourcepub fn autocreate(&self) -> bool
pub fn autocreate(&self) -> bool
Return true if the map was set to be auto-created during load, false otherwise.
Trait Implementations§
Source§impl AsRawLibbpf for Map<'_>
impl AsRawLibbpf for Map<'_>
Source§fn as_libbpf_object(&self) -> NonNull<Self::LibbpfType>
fn as_libbpf_object(&self) -> NonNull<Self::LibbpfType>
Retrieve the underlying libbpf_sys::bpf_map.
Source§type LibbpfType = bpf_map
type LibbpfType = bpf_map
The underlying
libbpf type.