#[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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for bpf_map_def
Source§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
impl Eq for bpf_map_def
Source§impl PartialEq for bpf_map_def
impl PartialEq for bpf_map_def
Source§fn eq(&self, other: &bpf_map_def) -> bool
fn eq(&self, other: &bpf_map_def) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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