pub struct OpenMap { /* private fields */ }
Expand description
Represents a parsed but not yet loaded BPF map.
This object exposes operations that need to happen before the map is created.
Some methods require working with raw bytes. You may find libraries such as
plain
helpful.
Implementations
sourceimpl OpenMap
impl OpenMap
pub fn set_map_ifindex(&mut self, idx: u32)
pub fn set_initial_value(&mut self, data: &[u8]) -> Result<()>
pub fn set_max_entries(&mut self, count: u32) -> Result<()>
pub fn set_inner_map_fd(&mut self, inner: &Map)
Auto Trait Implementations
impl RefUnwindSafe for OpenMap
impl !Send for OpenMap
impl !Sync for OpenMap
impl Unpin for OpenMap
impl UnwindSafe for OpenMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more