pub struct Program {
pub license: CString,
pub kernel_version: Option<u32>,
pub section: ProgramSection,
pub section_index: usize,
pub address: u64,
}Expand description
An eBPF program
Fields§
§license: CStringThe license
kernel_version: Option<u32>The kernel version
section: ProgramSectionThe section containing the program
section_index: usizeThe section index of the program
address: u64The address of the program
Implementations§
Source§impl Program
impl Program
Sourcepub fn function_key(&self) -> (usize, u64)
pub fn function_key(&self) -> (usize, u64)
The key used by Object::functions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more