logo
pub enum EbpfError<E: UserDefinedError> {
Show 21 variants UserError(E), ElfError(ElfError), SycallAlreadyRegistered(usize), SyscallNotRegistered(usize), SyscallAlreadyBound(usize), CallDepthExceeded(usizeusize), ExitRootCallFrame, DivideByZero(usize), ExecutionOverrun(usize), CallOutsideTextSegment(usizeu64), ExceededMaxInstructions(usizeu64), JitNotCompiled, InvalidVirtualAddress(u64), InvalidMemoryRegion(usize), AccessViolation(usizeAccessTypeu64u64, &'static str), StackAccessViolation(usizeAccessTypeu64u64i64), InvalidInstruction(usize), UnsupportedInstruction(usize), ExhausedTextSegment(usize), LibcInvocationFailed(&'static strVec<String>, i32), VerifierError(VerifierError),
}
Expand description

Error definitions

Variants

UserError(E)

User defined error

ElfError(ElfError)

ELF error

SycallAlreadyRegistered(usize)

Syscall was already registered before

SyscallNotRegistered(usize)

Syscall was not registered before bind

SyscallAlreadyBound(usize)

Syscall already has a bound context object

CallDepthExceeded(usizeusize)

Exceeded max BPF to BPF call depth

ExitRootCallFrame

Attempt to exit from root call frame

DivideByZero(usize)

Divide by zero“

ExecutionOverrun(usize)

Exceeded max instructions allowed

CallOutsideTextSegment(usizeu64)

Attempt to call to an address outside the text segment

ExceededMaxInstructions(usizeu64)

Exceeded max instructions allowed

JitNotCompiled

Program has not been JIT-compiled

InvalidVirtualAddress(u64)

Invalid virtual address

InvalidMemoryRegion(usize)

Memory region index or virtual address space is invalid

AccessViolation(usizeAccessTypeu64u64, &'static str)

Access violation (general)

StackAccessViolation(usizeAccessTypeu64u64i64)

Access violation (stack specific)

InvalidInstruction(usize)

Invalid instruction

UnsupportedInstruction(usize)

Unsupported instruction

ExhausedTextSegment(usize)

Compilation is too big to fit

LibcInvocationFailed(&'static strVec<String>, i32)

Libc function call returned an error

VerifierError(VerifierError)

ELF error

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.