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

pub enum ProgramError {
Show 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, 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.

Show fields

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.

Show fields

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.

Show fields

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.

Show fields

Fields of UnknownInterface

name: String
UnexpectedProgramType

The program is not of the expected type.

MapError(MapError)

A map error occurred while loading or attaching a program.

KProbeError(KProbeError)

An error occurred while working with a KProbe.

UProbeError(UProbeError)

An error occurred while working with an UProbe.

TracePointError(TracePointError)

An error occurred while working with a TracePoint.

SocketFilterError(SocketFilterError)

An error occurred while working with a SocketFilter.

XdpError(XdpError)

An error occurred while working with an Xdp program.

TcError(TcError)

An error occurred while working with a TC program.

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.