pub enum BtfError {
Show 16 variants
InvalidHeader,
InvalidTypeInfo,
InvalidRelocationInfo,
InvalidTypeKind {
kind: u32,
},
InvalidRelocationKind {
kind: u32,
},
InvalidStringOffset {
offset: usize,
},
InvalidInfo {
offset: usize,
len: usize,
section_len: usize,
},
InvalidLineInfo {
offset: usize,
len: usize,
section_len: usize,
},
UnknownBtfType {
type_id: u32,
},
UnexpectedBtfType {
type_id: u32,
},
UnknownBtfTypeName {
type_name: String,
},
MaximumTypeDepthReached {
type_id: u32,
},
SymbolOffsetNotFound {
symbol_name: String,
},
InvalidDatasec,
UnknownSectionSize {
section_name: String,
},
InvalidSymbolName,
}Expand description
The error type returned when BTF operations fail.
Variants§
InvalidHeader
Error parsing BTF header
InvalidTypeInfo
invalid BTF type info segment
InvalidRelocationInfo
invalid BTF relocation info segment
InvalidTypeKind
invalid BTF type kind
InvalidRelocationKind
invalid BTF relocation kind
InvalidStringOffset
invalid BTF string offset
InvalidInfo
invalid BTF info
InvalidLineInfo
invalid BTF line infos
UnknownBtfType
unknown BTF type id
UnexpectedBtfType
unexpected btf type id
UnknownBtfTypeName
unknown BTF type
MaximumTypeDepthReached
maximum depth reached resolving BTF type
SymbolOffsetNotFound
offset not found for symbol
InvalidDatasec
btf type that is not VAR found in DATASEC
UnknownSectionSize
unable to determine the size of section
InvalidSymbolName
unable to get symbol name
Trait Implementations§
Source§impl Error for BtfError
impl Error for BtfError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BtfError
impl RefUnwindSafe for BtfError
impl Send for BtfError
impl Sync for BtfError
impl Unpin for BtfError
impl UnwindSafe for BtfError
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