[][src]Struct nc::types::bpf_attr_map_create_t

#[repr(C)]
pub struct bpf_attr_map_create_t {
    pub map_type: u32,
    pub key_size: u32,
    pub value_size: u32,
    pub max_entries: u32,
    pub map_flags: u32,
    pub inner_map_fd: u32,
    pub numa_node: u32,
    pub map_name: [u8; 16],
    pub map_ifindex: u32,
    pub btf_fd: u32,
    pub btf_key_type_id: u32,
    pub btf_value_type_id: u32,
}

anonymous struct used by BPF_MAP_CREATE command

Fields

map_type: u32

one of enum bpf_map_type

key_size: u32

size of key in bytes

value_size: u32

size of value in bytes

max_entries: u32

max number of entries in a map

map_flags: u32

BPF_MAP_CREATE related flags defined above.

inner_map_fd: u32

fd pointing to the inner map

numa_node: u32

numa node (effective only if BPF_F_NUMA_NODE is set).

map_name: [u8; 16]map_ifindex: u32

ifindex of netdev to create on

btf_fd: u32

fd pointing to a BTF type data

btf_key_type_id: u32

BTF type_id of the key

btf_value_type_id: u32

BTF type_id of the value

Trait Implementations

impl Copy for bpf_attr_map_create_t[src]

impl Clone for bpf_attr_map_create_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.