pub enum ErrorKind {
Show 14 variants
IOError,
EOF,
InvalidOffset,
InvalidMagic,
InvalidBTFKind,
InvalidStringOffset,
InvalidString,
UnsupportedType,
InvalidTypeHeaderAttribute,
InvalidTypeSectionOffset,
InvalidTypePath,
InvalidTypeID,
NotSized,
UnexpectedBitfield,
}Expand description
Error kinds used by the reader module
Variants§
IOError
An IO error has occurred
EOF
The end of the file has been reached
InvalidOffset
The offset is invalid, as there are not enough bytes left to complete the read request
InvalidMagic
The BTF header magic number is invalid
InvalidBTFKind
Invalid BTF kind specified in the type info flags
InvalidStringOffset
Invalid string offset
InvalidString
The string is not correctly null terminated
UnsupportedType
Unsupported BTF type encountered
InvalidTypeHeaderAttribute
Invalid type header attribute
InvalidTypeSectionOffset
Invalid type section offset
InvalidTypePath
The given type path is invalid
InvalidTypeID
Invalid type id
NotSized
The specified BTF type id is not sized
UnexpectedBitfield
Found a bitfield in the middle of a type path resolution
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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