Struct ebpf_kern::HashMapRef[][src]

pub struct HashMapRef<const K: usize, const V: usize> { /* fields omitted */ }

Implementations

impl<const K: usize, const V: usize> HashMapRef<K, V>[src]

pub fn new<const M: usize>(inner: &mut HashMap<K, V, M>) -> Self[src]

pub fn insert(&mut self, key: [u8; K], value: [u8; V]) -> Result<(), i32>[src]

pub fn get(&self, key: &[u8; K]) -> Option<&[u8; V]>[src]

pub fn get_mut(&mut self, key: &[u8; K]) -> Option<&mut [u8; V]>[src]

pub fn remove(&mut self, key: &[u8; K]) -> Result<Option<[u8; V]>, i32>[src]

Auto Trait Implementations

impl<const K: usize, const V: usize> Send for HashMapRef<K, V>

impl<const K: usize, const V: usize> Sync for HashMapRef<K, V>

impl<const K: usize, const V: usize> Unpin for HashMapRef<K, V>

Blanket Implementations

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

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

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

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

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

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> 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.