pub enum Namespace {
Hardcoded,
Generated,
Verification,
}Expand description
An identifier for a memory buffer accessible by an ebpf program. The identifiers are built as a
chain of unique identifier so that a buffer can contain multiple pointers to the same type and
the verifier can distinguish between the different instances.
The namespace of a MemoryId, used to prevent collisions between different
sources of identifiers.
Variants§
Hardcoded
For static structure identifiers (e.g., SkBuff, BpfSock) defined in program_type.rs.
Generated
For IDs generated by MemoryId::new() using the global counter.
Verification
For IDs generated by VerificationContext::next_id() using the local counter.
Trait Implementations§
Source§impl Ord for Namespace
impl Ord for Namespace
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Namespace
impl PartialOrd for Namespace
impl Copy for Namespace
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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