pub struct StructMapping {
pub memory_id: MemoryId,
pub fields: FieldMappings,
}Fields§
§memory_id: MemoryIdMemory ID used in the struct definition.
fields: FieldMappingsThe list of mappings in the buffer. The verifier must rewrite the actual ebpf to ensure the right offset and operand are use to access the mapped fields. Mappings are allowed only for pointer fields.
Trait Implementations§
Source§impl Clone for StructMapping
impl Clone for StructMapping
Source§fn clone(&self) -> StructMapping
fn clone(&self) -> StructMapping
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 moreAuto Trait Implementations§
impl Freeze for StructMapping
impl RefUnwindSafe for StructMapping
impl Send for StructMapping
impl Sync for StructMapping
impl Unpin for StructMapping
impl UnwindSafe for StructMapping
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