Struct hypervisor::VcpuShutdownError
source · 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: u64
Implementations§
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 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.