pub trait BpfProgramContext: 'static + Sized {
type RunContext<'a>;
type Packet<'a>: ProgramArgument + Packet + FromBpfValue<Self::RunContext<'a>>;
type Map: MapReference;
const CBPF_CONFIG: &'static CbpfConfig;
// Provided method
fn get_arg_types() -> Vec<Type> { ... }
}Expand description
A context for a BPF program that’s compatible with eBPF and cBPF.
Required Associated Constants§
const CBPF_CONFIG: &'static CbpfConfig
Required Associated Types§
type RunContext<'a>
type Packet<'a>: ProgramArgument + Packet + FromBpfValue<Self::RunContext<'a>>
type Map: MapReference
Provided Methods§
fn get_arg_types() -> Vec<Type>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.