pub struct KSymbolType(pub u16);Expand description
The type of the kernel symbol.
Tuple Fields§
§0: u16Implementations§
Source§impl KSymbolType
impl KSymbolType
Sourcepub const UNKNOWN: KSymbolType
pub const UNKNOWN: KSymbolType
The symbol is of an unknown type.
Sourcepub const BPF: KSymbolType
pub const BPF: KSymbolType
The symbol is a BPF function.
Sourcepub const OOL: KSymbolType
pub const OOL: KSymbolType
The symbol is out-of-line code.
See the kernel source for examples of when this could occur.
Source§impl KSymbolType
impl KSymbolType
Sourcepub const fn new(value: u16) -> KSymbolType
pub const fn new(value: u16) -> KSymbolType
Create a new KSymbolType.
Trait Implementations§
Source§impl Clone for KSymbolType
impl Clone for KSymbolType
Source§fn clone(&self) -> KSymbolType
fn clone(&self) -> KSymbolType
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 KSymbolType
impl Debug for KSymbolType
Source§impl From<u16> for KSymbolType
impl From<u16> for KSymbolType
Source§fn from(value: u16) -> KSymbolType
fn from(value: u16) -> KSymbolType
Converts to this type from the input type.
Source§impl Hash for KSymbolType
impl Hash for KSymbolType
Source§impl<'p> Parse<'p> for KSymbolType
impl<'p> Parse<'p> for KSymbolType
Source§fn parse<B, E>(p: &mut Parser<B, E>) -> Result<KSymbolType, ParseError>
fn parse<B, E>(p: &mut Parser<B, E>) -> Result<KSymbolType, ParseError>
Parse
Self using the provided Parser instance.Source§impl PartialEq for KSymbolType
impl PartialEq for KSymbolType
impl Copy for KSymbolType
impl Eq for KSymbolType
impl StructuralPartialEq for KSymbolType
Auto Trait Implementations§
impl Freeze for KSymbolType
impl RefUnwindSafe for KSymbolType
impl Send for KSymbolType
impl Sync for KSymbolType
impl Unpin for KSymbolType
impl UnwindSafe for KSymbolType
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