pub enum HypervisorError {
Show 13 variants
Common(CommonError),
UnsupportedPlatform(String),
InitializationFailed(String),
VmCreationFailed(String),
VcpuCreationFailed {
id: u32,
reason: String,
},
MemoryError(String),
VmStateError {
expected: String,
actual: String,
},
VcpuRunError(String),
DeviceError(String),
VmError(String),
SnapshotError(String),
NotSupported(String),
KvmError(String),
}Expand description
Errors that can occur during hypervisor operations.
Variants§
Common(CommonError)
Common error from arcbox-error.
UnsupportedPlatform(String)
Platform not supported.
InitializationFailed(String)
Failed to initialize hypervisor.
VmCreationFailed(String)
Failed to create virtual machine.
VcpuCreationFailed
Failed to create vCPU.
MemoryError(String)
Memory mapping error.
VmStateError
VM not in expected state.
VcpuRunError(String)
vCPU execution error.
DeviceError(String)
Device error.
VmError(String)
VM runtime error.
SnapshotError(String)
Snapshot error.
NotSupported(String)
Feature not supported.
KvmError(String)
Platform-specific error.
Implementations§
Trait Implementations§
Source§impl Debug for HypervisorError
impl Debug for HypervisorError
Source§impl Display for HypervisorError
impl Display for HypervisorError
Source§impl Error for HypervisorError
impl Error for HypervisorError
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()
Source§impl From<CommonError> for HypervisorError
impl From<CommonError> for HypervisorError
Source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HypervisorError
impl !RefUnwindSafe for HypervisorError
impl Send for HypervisorError
impl Sync for HypervisorError
impl Unpin for HypervisorError
impl UnsafeUnpin for HypervisorError
impl !UnwindSafe for HypervisorError
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