pub enum Error {
Show 54 variants
OpenKvm(Error),
SignalMsi(Error),
SetMemoryRegion(Error),
SetMemoryAttributes(Error),
CreateGuestMemfd(Error),
CreateVm(Error),
MissingCapability(&'static str),
UnsupportedVmType(VmType),
MemoryEncryptOp {
command: &'static str,
firmware_error: u32,
source: Error,
},
EnableCap(&'static str, Error),
CreateVCpu(Error),
GetRegs(Error),
GetSRegs(Error),
SetRegs(Error),
SetSRegs(Error),
Run(Error),
RunMemoryFault {
flags: u64,
gpa: u64,
size: u64,
source: Error,
},
GetVCpuMmapSize(Error),
MmapVCpu(Error),
SetFpu(Error),
GetSupportedCpuid(Error),
SetCpuid(Error),
Interrupt(Error),
GetLApic(Error),
SetLApic(Error),
GetXsave(Error),
SetXsave(Error),
GetDebugRegs(Error),
SetDebugRegs(Error),
GetXcrs(Error),
SetXcrs(Error),
XsaveNotEnabled,
SetGsiRouting(Error),
IrqLine(Error),
GetMsrs(Error),
SetMsrs(Error),
IncompleteMsrs {
write: bool,
completed: usize,
requested: usize,
failed_msr: u32,
},
SetupMce(Error),
GetMceCapSupported(Error),
GetMpState(Error),
SetMpState(Error),
GetVcpuEvents(Error),
SetVcpuEvents(Error),
TranslateGva(Error),
UnknownExit(u32),
UnknownHvExit(u32),
IoEventFd(Error),
IrqFd(Error),
SetBsp(Error),
CreateDevice(Error),
SetDeviceAttr(Error),
CheckExtension(Error),
GetClock(Error),
SetClock(Error),
}Variants§
OpenKvm(Error)
SignalMsi(Error)
SetMemoryRegion(Error)
SetMemoryAttributes(Error)
CreateGuestMemfd(Error)
CreateVm(Error)
MissingCapability(&'static str)
UnsupportedVmType(VmType)
MemoryEncryptOp
EnableCap(&'static str, Error)
CreateVCpu(Error)
GetRegs(Error)
GetSRegs(Error)
SetRegs(Error)
SetSRegs(Error)
Run(Error)
RunMemoryFault
GetVCpuMmapSize(Error)
MmapVCpu(Error)
SetFpu(Error)
GetSupportedCpuid(Error)
SetCpuid(Error)
Interrupt(Error)
GetLApic(Error)
SetLApic(Error)
GetXsave(Error)
SetXsave(Error)
GetDebugRegs(Error)
SetDebugRegs(Error)
GetXcrs(Error)
SetXcrs(Error)
XsaveNotEnabled
SetGsiRouting(Error)
IrqLine(Error)
GetMsrs(Error)
SetMsrs(Error)
IncompleteMsrs
SetupMce(Error)
GetMceCapSupported(Error)
GetMpState(Error)
SetMpState(Error)
GetVcpuEvents(Error)
SetVcpuEvents(Error)
TranslateGva(Error)
UnknownExit(u32)
UnknownHvExit(u32)
IoEventFd(Error)
IrqFd(Error)
SetBsp(Error)
CreateDevice(Error)
SetDeviceAttr(Error)
CheckExtension(Error)
GetClock(Error)
SetClock(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 UnsafeUnpin 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