pub enum VmRuntimeError {
VmAlreadyExists(String),
VmNotFound(String),
InvalidTransition {
vm_id: String,
from: String,
to: &'static str,
},
SnapshotAlreadyExists {
vm_id: String,
snapshot_id: String,
},
StatePoisoned,
Unsupported(String),
}Expand description
Errors that can occur during microVM lifecycle or query operations.
Variants§
VmAlreadyExists(String)
Attempted to create a VM with an identifier that is already in use.
VmNotFound(String)
Referenced a VM identifier that does not exist.
InvalidTransition
A lifecycle transition was requested that is not valid from the current state.
SnapshotAlreadyExists
Attempted to create a snapshot with an identifier that already exists on the VM.
StatePoisoned
Internal lock was poisoned by a panicking thread.
Unsupported(String)
Backend is not supported in the current build/config.
Trait Implementations§
Source§impl Debug for VmRuntimeError
impl Debug for VmRuntimeError
Source§impl Display for VmRuntimeError
impl Display for VmRuntimeError
Source§impl Error for VmRuntimeError
impl Error for VmRuntimeError
1.30.0 · 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 VmRuntimeError
impl RefUnwindSafe for VmRuntimeError
impl Send for VmRuntimeError
impl Sync for VmRuntimeError
impl Unpin for VmRuntimeError
impl UnsafeUnpin for VmRuntimeError
impl UnwindSafe for VmRuntimeError
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