pub enum HaltReason {
PowerOff,
Reset,
Hibernate,
DebugBreak {
vp: Option<u32>,
},
TripleFault {
vp: u32,
registers: Option<Arc<Registers>>,
},
InvalidVmState {
vp: u32,
},
VpError {
vp: u32,
},
SingleStep {
vp: u32,
},
HwBreakpoint {
vp: u32,
breakpoint: HardwareBreakpoint,
},
}
Expand description
HaltReason sent by devices and vp_set to the vmm.
Variants§
Trait Implementations§
Source§impl Clone for HaltReason
impl Clone for HaltReason
Source§fn clone(&self) -> HaltReason
fn clone(&self) -> HaltReason
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 HaltReason
impl Debug for HaltReason
Source§impl DefaultEncoding for HaltReason
impl DefaultEncoding for HaltReason
Source§impl<'encoding, AnyR: 'static> OneofDecode<'encoding, AnyR> for HaltReason
impl<'encoding, AnyR: 'static> OneofDecode<'encoding, AnyR> for HaltReason
Source§fn read_variant(
item: &mut InplaceOption<'_, Self>,
n: u32,
field: FieldReader<'encoding, '_, AnyR>,
) -> Result<()>
fn read_variant( item: &mut InplaceOption<'_, Self>, n: u32, field: FieldReader<'encoding, '_, AnyR>, ) -> Result<()>
Read the specified variant from the reader.
Source§impl<AnyR: 'static> OneofEncode<AnyR> for HaltReason
impl<AnyR: 'static> OneofEncode<AnyR> for HaltReason
Source§fn write_variant(self, writer: MessageWriter<'_, '_, AnyR>)
fn write_variant(self, writer: MessageWriter<'_, '_, AnyR>)
Write the variant to the writer.
Source§fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
fn compute_variant_size(&mut self, sizer: MessageSizer<'_>)
Compute the size of the variant.
Source§impl PartialEq for HaltReason
impl PartialEq for HaltReason
impl Eq for HaltReason
impl StructuralPartialEq for HaltReason
Auto Trait Implementations§
impl Freeze for HaltReason
impl RefUnwindSafe for HaltReason
impl Send for HaltReason
impl Sync for HaltReason
impl Unpin for HaltReason
impl UnwindSafe for HaltReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].