pub enum EbpfError {
FileError {
path: PathBuf,
error: Error,
},
UnexpectedPinningType {
name: u32,
},
ParseError(ParseError),
BtfError(BtfError),
RelocationError(EbpfRelocationError),
BtfRelocationError(BtfRelocationError),
NoBTF,
MapError(MapError),
ProgramError(ProgramError),
}Expand description
The error type returned by Ebpf::load_file and Ebpf::load.
Variants§
FileError
Error loading file
UnexpectedPinningType
Unexpected pinning type
ParseError(ParseError)
Error parsing BPF object
BtfError(BtfError)
Error parsing BTF object
RelocationError(EbpfRelocationError)
Error performing relocations
BtfRelocationError(BtfRelocationError)
Error performing relocations
NoBTF
No BTF parsed for object
MapError(MapError)
A map error
ProgramError(ProgramError)
A program error
Trait Implementations§
Source§impl Error for EbpfError
impl Error for EbpfError
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()
Source§impl From<BtfRelocationError> for EbpfError
impl From<BtfRelocationError> for EbpfError
Source§fn from(source: BtfRelocationError) -> Self
fn from(source: BtfRelocationError) -> Self
Converts to this type from the input type.
Source§impl From<EbpfRelocationError> for EbpfError
impl From<EbpfRelocationError> for EbpfError
Source§fn from(source: EbpfRelocationError) -> Self
fn from(source: EbpfRelocationError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for EbpfError
impl From<ParseError> for EbpfError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ProgramError> for EbpfError
impl From<ProgramError> for EbpfError
Source§fn from(source: ProgramError) -> Self
fn from(source: ProgramError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EbpfError
impl !RefUnwindSafe for EbpfError
impl Send for EbpfError
impl Sync for EbpfError
impl Unpin for EbpfError
impl !UnwindSafe for EbpfError
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