pub struct UnifiedMap { /* private fields */ }Expand description
A unified BPF map that can hold any type of BPF map.
Implementations§
Source§impl UnifiedMap
impl UnifiedMap
Sourcepub fn map(&self) -> &dyn BpfMapCommonOps
pub fn map(&self) -> &dyn BpfMapCommonOps
Get a reference to the concrete map.
Sourcepub fn map_mut(&mut self) -> &mut dyn BpfMapCommonOps
pub fn map_mut(&mut self) -> &mut dyn BpfMapCommonOps
Get a mutable reference to the concrete map.
Sourcepub fn map_meta(&self) -> &BpfMapMeta
pub fn map_meta(&self) -> &BpfMapMeta
Get the map metadata.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnifiedMap
impl !RefUnwindSafe for UnifiedMap
impl Send for UnifiedMap
impl Sync for UnifiedMap
impl Unpin for UnifiedMap
impl UnsafeUnpin for UnifiedMap
impl !UnwindSafe for UnifiedMap
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> 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