Enum aya::BtfError[][src]

pub enum BtfError {
    FileError {
        path: PathBuf,
        error: Error,
    },
    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,
    },
    MaximumTypeDepthReached {
        type_id: u32,
    },
}
Expand description

The error type returned when BTF operations fail.

Variants

FileError
Show fields

Fields of FileError

path: PathBuferror: Error
InvalidHeader
InvalidTypeInfo
InvalidRelocationInfo
InvalidTypeKind
Show fields

Fields of InvalidTypeKind

kind: u32
InvalidRelocationKind
Show fields

Fields of InvalidRelocationKind

kind: u32
InvalidStringOffset
Show fields

Fields of InvalidStringOffset

offset: usize
InvalidInfo
Show fields

Fields of InvalidInfo

offset: usizelen: usizesection_len: usize
InvalidLineInfo
Show fields

Fields of InvalidLineInfo

offset: usizelen: usizesection_len: usize
UnknownBtfType
Show fields

Fields of UnknownBtfType

type_id: u32
UnexpectedBtfType
Show fields

Fields of UnexpectedBtfType

type_id: u32
MaximumTypeDepthReached
Show fields

Fields of MaximumTypeDepthReached

type_id: u32

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.