Enum aya::programs::ProgramError[][src]

pub enum ProgramError {
Show 17 variants NotFound { name: String, }, AlreadyLoaded, NotLoaded, AlreadyDetached, NotAttached, LoadError { io_error: Error, verifier_log: String, }, SyscallError { call: String, io_error: Error, }, UnknownInterface { name: String, }, UnexpectedProgramType, InvalidPinPath { error: String, }, MapError(MapError), KProbeError(KProbeError), UProbeError(UProbeError), TracePointError(TracePointError), SocketFilterError(SocketFilterError), XdpError(XdpError), TcError(TcError),
}
Expand description

Error type returned when working with programs.

Variants

NotFound

The program could not be found in the object code.

Fields of NotFound

name: String
AlreadyLoaded

The program is already loaded.

NotLoaded

The program is not loaded.

AlreadyDetached

The program is already detached.

NotAttached

The program is not attached.

LoadError

Loading the program failed.

Fields of LoadError

io_error: Error

The io::Error returned by the BPF_PROG_LOAD syscall.

verifier_log: String

The error log produced by the kernel verifier.

SyscallError

A syscall failed.

Fields of SyscallError

call: String

The name of the syscall which failed.

io_error: Error

The io::Error returned by the syscall.

UnknownInterface

The network interface does not exist.

Fields of UnknownInterface

name: String
UnexpectedProgramType

The program is not of the expected type.

InvalidPinPath

Fields of InvalidPinPath

error: String
MapError(MapError)

A map error occurred while loading or attaching a program.

Tuple Fields of MapError

0: MapError
KProbeError(KProbeError)

An error occurred while working with a KProbe.

Tuple Fields of KProbeError

0: KProbeError
UProbeError(UProbeError)

An error occurred while working with an UProbe.

Tuple Fields of UProbeError

0: UProbeError
TracePointError(TracePointError)

An error occurred while working with a TracePoint.

Tuple Fields of TracePointError

0: TracePointError
SocketFilterError(SocketFilterError)

An error occurred while working with a SocketFilter.

Tuple Fields of SocketFilterError

0: SocketFilterError
XdpError(XdpError)

An error occurred while working with an Xdp program.

Tuple Fields of XdpError

0: XdpError
TcError(TcError)

An error occurred while working with a TC program.

Tuple Fields of TcError

0: TcError

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.