pub struct BpfMapMeta {
pub map_type: BpfMapType,
pub key_size: u32,
pub value_size: u32,
pub max_entries: u32,
pub map_flags: BpfMapCreateFlags,
pub _map_name: String,
}Expand description
Metadata for a BPF map.
Fields§
§map_type: BpfMapTypeThe type of the BPF map.
key_size: u32The size of the key in bytes.
value_size: u32The size of the value in bytes.
max_entries: u32The maximum number of entries in the map.
map_flags: BpfMapCreateFlagsThe flags for the BPF map.
_map_name: StringThe name of the BPF map.
Trait Implementations§
Source§impl Clone for BpfMapMeta
impl Clone for BpfMapMeta
Source§fn clone(&self) -> BpfMapMeta
fn clone(&self) -> BpfMapMeta
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 BpfMapMeta
impl Debug for BpfMapMeta
Source§impl Default for BpfMapMeta
impl Default for BpfMapMeta
Source§fn default() -> BpfMapMeta
fn default() -> BpfMapMeta
Returns the “default value” for a type. Read more
Source§impl TryFrom<&bpf_attr> for BpfMapMeta
impl TryFrom<&bpf_attr> for BpfMapMeta
Source§type Error = LinuxError
type Error = LinuxError
The type returned in the event of a conversion error.
Source§fn try_from(attr: &bpf_attr) -> LinuxResult<Self>
fn try_from(attr: &bpf_attr) -> LinuxResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BpfMapMeta
impl RefUnwindSafe for BpfMapMeta
impl Send for BpfMapMeta
impl Sync for BpfMapMeta
impl Unpin for BpfMapMeta
impl UnsafeUnpin for BpfMapMeta
impl UnwindSafe for BpfMapMeta
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more