Struct bpfdeploy_libbpf_sys::bpf_map_info
source · [−]#[repr(C)]pub struct bpf_map_info {Show 17 fields
pub type_: __u32,
pub id: __u32,
pub key_size: __u32,
pub value_size: __u32,
pub max_entries: __u32,
pub map_flags: __u32,
pub name: [c_char; 16],
pub ifindex: __u32,
pub btf_vmlinux_value_type_id: __u32,
pub netns_dev: __u64,
pub netns_ino: __u64,
pub btf_id: __u32,
pub btf_key_type_id: __u32,
pub btf_value_type_id: __u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub map_extra: __u64,
}Fields
type_: __u32id: __u32key_size: __u32value_size: __u32max_entries: __u32map_flags: __u32name: [c_char; 16]ifindex: __u32btf_vmlinux_value_type_id: __u32netns_dev: __u64netns_ino: __u64btf_id: __u32btf_key_type_id: __u32btf_value_type_id: __u32_bitfield_align_1: [u8; 0]_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>map_extra: __u64Implementations
sourceimpl bpf_map_info
impl bpf_map_info
pub fn new_bitfield_1() -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations
sourceimpl Clone for bpf_map_info
impl Clone for bpf_map_info
sourcefn clone(&self) -> bpf_map_info
fn clone(&self) -> bpf_map_info
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for bpf_map_info
impl Debug for bpf_map_info
sourceimpl Default for bpf_map_info
impl Default for bpf_map_info
sourcefn default() -> bpf_map_info
fn default() -> bpf_map_info
Returns the “default value” for a type. Read more
impl Copy for bpf_map_info
Auto Trait Implementations
impl RefUnwindSafe for bpf_map_info
impl Send for bpf_map_info
impl Sync for bpf_map_info
impl Unpin for bpf_map_info
impl UnwindSafe for bpf_map_info
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more