#[repr(C)]pub struct bpf_map_def {
pub map_type: u32,
pub key_size: u32,
pub value_size: u32,
pub max_entries: u32,
pub map_flags: u32,
pub id: u32,
pub pinning: PinningType,
}Expand description
Map definition in legacy BPF map declaration style
Fields§
§map_type: u32The map type
key_size: u32The key_size
value_size: u32The value size
max_entries: u32Max entry number
map_flags: u32Map flags
id: u32Id
pinning: PinningTypePinning type
Trait Implementations§
Source§impl Clone for bpf_map_def
impl Clone for bpf_map_def
Source§fn clone(&self) -> bpf_map_def
fn clone(&self) -> bpf_map_def
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for bpf_map_def
impl Debug for bpf_map_def
Source§impl Default for bpf_map_def
impl Default for bpf_map_def
Source§fn default() -> bpf_map_def
fn default() -> bpf_map_def
Returns the “default value” for a type. Read more
Source§impl PartialEq for bpf_map_def
impl PartialEq for bpf_map_def
impl Copy for bpf_map_def
impl Eq for bpf_map_def
impl StructuralPartialEq for bpf_map_def
Auto Trait Implementations§
impl Freeze for bpf_map_def
impl RefUnwindSafe for bpf_map_def
impl Send for bpf_map_def
impl Sync for bpf_map_def
impl Unpin for bpf_map_def
impl UnwindSafe for bpf_map_def
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.