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
The program could not be found in the object code.
Show fields
Fields of NotFound
name: String
The program is already loaded.
The program is not loaded.
The program is already detached.
The program is not attached.
Loading the program failed.
Show fields
A syscall failed.
Show fields
The network interface does not exist.
Show fields
Fields of UnknownInterface
name: String
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl !UnwindSafe for ProgramError