pub trait EbpfInst: Clone {
// Required methods
fn opc(&self) -> u8;
fn imm(&self) -> i32;
fn src(&self) -> u8;
fn set_imm(&mut self, imm: i32);
fn to_array(&self) -> [u8; 8];
}Expand description
Trait for eBPF instructions that can be processed by the preprocessor.
Required 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.