Struct rxdp::PerCpuMap[][src]

pub struct PerCpuMap<K, V> { /* fields omitted */ }

Used for working with per-cpu eBPF maps.

Implementations

impl<K: Default, V: ByteAligned> PerCpuMap<K, V>[src]

pub fn create(
    map_type: MapType,
    key_size: u32,
    value_size: u32,
    max_entries: u32,
    map_flags: u32
) -> XDPResult<PerCpuMap<K, V>>
[src]

Create a new map.

pub fn new(xdp: &XDPLoadedObject, map_name: &str) -> XDPResult<PerCpuMap<K, V>>[src]

Get access to the eBPF map map_name. This will fail if the requested key size doesn’t match the key size defined in the ELF file.

Trait Implementations

impl<K: Default + Copy, V: ByteAligned> MapLike<K, V> for PerCpuMap<K, V>[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for PerCpuMap<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for PerCpuMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for PerCpuMap<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Unpin for PerCpuMap<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> UnwindSafe for PerCpuMap<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

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.