pub struct UnifiedMap<L: RawMutex + 'static> { /* private fields */ }Expand description
A unified BPF map that can hold any type of BPF map.
Implementations§
Source§impl<L: RawMutex + 'static> UnifiedMap<L>
impl<L: RawMutex + 'static> UnifiedMap<L>
Sourcepub fn map(&self) -> MutexGuard<'_, L, Box<dyn BpfMapCommonOps>>
pub fn map(&self) -> MutexGuard<'_, L, Box<dyn BpfMapCommonOps>>
Get a reference to the concrete map.
Sourcepub fn map_mut(&self) -> MutexGuard<'_, L, Box<dyn BpfMapCommonOps>>
pub fn map_mut(&self) -> MutexGuard<'_, L, Box<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<L> !Freeze for UnifiedMap<L>
impl<L> !RefUnwindSafe for UnifiedMap<L>
impl<L> !UnwindSafe for UnifiedMap<L>
impl<L> Send for UnifiedMap<L>where
L: Send,
impl<L> Sync for UnifiedMap<L>where
L: Sync,
impl<L> Unpin for UnifiedMap<L>where
L: Unpin,
impl<L> UnsafeUnpin for UnifiedMap<L>where
L: UnsafeUnpin,
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