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
The program could not be found in the object code.
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.
Fields of LoadError
A syscall failed.
Fields of SyscallError
The network interface does not exist.
Fields of UnknownInterface
name: String
The program is not of the expected type.
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
SocketFilterError(SocketFilterError)
An error occurred while working with a SocketFilter
.
Tuple Fields of 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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.