pub enum Error {
Show 19 variants
MissingArgKey {
argument: String,
},
MissingArgValue {
argument: String,
},
InvalidBool {
name: String,
val: String,
},
ConcurrentPluginUninstallCallbackSet,
ConcurrentPluginResetCallbackSet,
PluginResetCallbackState,
InvalidInstructionIndex {
index: usize,
size: usize,
},
NoDisassemblyString,
InvalidRegisterReadSize {
name: String,
size: usize,
},
RegisterReadError {
name: String,
},
RegisterWriteError {
name: String,
},
VaddrReadError {
addr: u64,
len: u32,
},
VaddrWriteError {
addr: u64,
len: u32,
},
HwaddrReadError {
addr: u64,
len: u32,
result: HwaddrOperationResult,
},
HwaddrWriteError {
addr: u64,
len: u32,
result: HwaddrOperationResult,
},
VaddrTranslateError {
vaddr: u64,
},
Utf8Error(Utf8Error),
NulError(NulError),
Other(Error),
}
Expand description
An error from the qemu-plugin crate
Variants§
MissingArgKey
Error when an argument is missing a key
MissingArgValue
Error when an argument is missing a value
InvalidBool
Error when a boolean argument is invalid
Fields
ConcurrentPluginUninstallCallbackSet
Error when the QEMU plugin uninstall callback is set concurrently
ConcurrentPluginResetCallbackSet
Error when the QEMU plugin reset callback is set concurrently
PluginResetCallbackState
Error when the plugin reset callback is in an invalid state
InvalidInstructionIndex
Error when an instruction index is invalid
Fields
NoDisassemblyString
Error when no disassembly string is available for an instruction (i.e. NULL string
InvalidRegisterReadSize
Error when the size of a register read is invalid
RegisterReadError
Error when reading a register fails
RegisterWriteError
Error when writing a register fails
VaddrReadError
Error when reading memory from a virtual address fails
VaddrWriteError
Error when writing memory from a virtual address fails
HwaddrReadError
Error when reading memory from a hardware address fails
Fields
result: HwaddrOperationResult
The operation result
HwaddrWriteError
Error when writing memory from a hardware address fails
Fields
result: HwaddrOperationResult
The operation result
VaddrTranslateError
Error when translating a virtual address to a hardware address fails
Utf8Error(Utf8Error)
A transparently wrapped std::str::Utf8Error
NulError(NulError)
A transparently wrapped std::ffi::NulError
Other(Error)
A transparently wrapped anyhow::Error