Struct aya_obj::maps::bpf_map_def
source · #[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 copy 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
source§fn eq(&self, other: &bpf_map_def) -> bool
fn eq(&self, other: &bpf_map_def) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for bpf_map_def
impl Eq for bpf_map_def
impl StructuralPartialEq for bpf_map_def
Auto Trait Implementations§
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