Struct libbpf_rs::Map [−][src]
pub struct Map { /* fields omitted */ }
Expand description
Represents a created map.
Some methods require working with raw bytes. You may find libraries such as
plain
helpful.
Implementations
Value size in bytes
Returns map value as Vec
of u8
.
key
must have exactly Map::key_size()
elements.
Deletes an element from the map.
key
must have exactly Map::key_size()
elements.
Same as Map::lookup()
except this also deletes the key from the map.
Note that this operation is currently only implemented in the kernel for MapType::Queue
and MapType::Stack
.
key
must have exactly Map::key_size()
elements.
Update an element.
key
must have exactly Map::key_size()
elements. value
must have exatly
Map::value_size()
elements.
Auto Trait Implementations
impl RefUnwindSafe for Map
impl UnwindSafe for Map