pub struct VcpuShutdownError {
pub(crate) kind: VcpuShutdownErrorKind,
pub(crate) raw_error_code: u64,
}Expand description
A Vcpu shutdown may signify an error, such as a double or triple fault, or hypervisor specific reasons. This error covers all such cases.
Fields§
§kind: VcpuShutdownErrorKind§raw_error_code: u64Implementations§
Source§impl VcpuShutdownError
impl VcpuShutdownError
pub fn new( kind: VcpuShutdownErrorKind, raw_error_code: u64, ) -> VcpuShutdownError
pub fn kind(&self) -> VcpuShutdownErrorKind
pub fn get_raw_error_code(&self) -> u64
Trait Implementations§
Source§impl Clone for VcpuShutdownError
impl Clone for VcpuShutdownError
Source§fn clone(&self) -> VcpuShutdownError
fn clone(&self) -> VcpuShutdownError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VcpuShutdownError
impl Debug for VcpuShutdownError
impl Copy for VcpuShutdownError
Auto Trait Implementations§
impl Freeze for VcpuShutdownError
impl RefUnwindSafe for VcpuShutdownError
impl Send for VcpuShutdownError
impl Sync for VcpuShutdownError
impl Unpin for VcpuShutdownError
impl UnwindSafe for VcpuShutdownError
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