pub trait RWMap<T, U> {
    unsafe fn read(&self, key: U) -> Result<T, OxidebpfError>;
unsafe fn write(&self, key: U, value: T) -> Result<(), OxidebpfError>; }
Expand description

This trait specifies a map that can be read from or written to (e.g., array types).

Required methods

Safety

This function should only be called when std::mem::size_of::<T>() matches the value in the map being read from and when std::mem::size_of::<U>() matches the key.

Safety

This function should only be called when std::mem::size_of::<T>() matches the value in the map being written to and when std::mem::size_of::<U>() matches the key.

Implementors