pub enum Error {
Show 13 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,
},
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
Utf8Error(Utf8Error)
A transparently wrapped std::str::Utf8Error
NulError(NulError)
A transparently wrapped std::ffi::NulError
Other(Error)
A transparently wrapped anyhow::Error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more