BpfProgramContext

Trait BpfProgramContext 

Source
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§

Required Associated Types§

Provided Methods§

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.

Implementors§