ebpf_program_context_type

Macro ebpf_program_context_type 

Source
macro_rules! ebpf_program_context_type {
    ($context:ty, $subtrait:ty) => { ... };
}
Expand description

Macro used to declare program type for a EbpfProgramContext implementation. Implements StaticHelperSet trait for the context type.

ยงExample

The following example declares that MyEbpfProgramContext is used to run socket filter programs:

ebpf_program_context_type!(MyEbpfProgramContext, SocketFilterProgramContext);