pub enum Map {
Legacy(LegacyMap),
Btf(BtfMap),
}Expand description
Map data defined in maps or .maps sections
Variants§
Implementations§
Source§impl Map
impl Map
Sourcepub const fn value_size(&self) -> u32
pub const fn value_size(&self) -> u32
Returns the value size in bytes
Sourcepub const fn set_value_size(&mut self, size: u32)
pub const fn set_value_size(&mut self, size: u32)
Set the value size in bytes
Sourcepub const fn max_entries(&self) -> u32
pub const fn max_entries(&self) -> u32
Returns the max entry number
Sourcepub const fn set_max_entries(&mut self, v: u32)
pub const fn set_max_entries(&mut self, v: u32)
Sets the max entry number
Sourcepub const fn pinning(&self) -> PinningType
pub const fn pinning(&self) -> PinningType
Returns the pinning type of the map
Sourcepub const fn section_index(&self) -> usize
pub const fn section_index(&self) -> usize
Returns the section index
Sourcepub const fn section_kind(&self) -> EbpfSectionKind
pub const fn section_kind(&self) -> EbpfSectionKind
Returns the section kind.
Sourcepub const fn symbol_index(&self) -> Option<usize>
pub const fn symbol_index(&self) -> Option<usize>
Returns the symbol index.
This is None for data maps (.bss, .data and .rodata) since those don’t
need symbols in order to be relocated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnsafeUnpin for Map
impl UnwindSafe for Map
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more