pub struct FieldMapping {
pub source_offset: usize,
pub target_offset: usize,
}Expand description
A mapping for a field in a struct where the original ebpf program knows a different offset and data size than the one it receives from the kernel.
Fields§
§source_offset: usizeThe offset of the field as known by the original ebpf program.
target_offset: usizeThe actual offset of the field in the data provided by the kernel.
Trait Implementations§
Source§impl Clone for FieldMapping
impl Clone for FieldMapping
Source§fn clone(&self) -> FieldMapping
fn clone(&self) -> FieldMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldMapping
impl Debug for FieldMapping
Source§impl PartialEq for FieldMapping
impl PartialEq for FieldMapping
impl Copy for FieldMapping
impl StructuralPartialEq for FieldMapping
Auto Trait Implementations§
impl Freeze for FieldMapping
impl RefUnwindSafe for FieldMapping
impl Send for FieldMapping
impl Sync for FieldMapping
impl Unpin for FieldMapping
impl UnwindSafe for FieldMapping
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