pub enum FirmwareEvent {
BootSuccess,
BootFailed,
NoBootDevice,
BootAttempt,
}
Expand description
Firmware events generated by the guest.
TODO: For now, these mainly represent UEFI events without the corresponding extra information. This should be rethought when HvLite supports Linux Direct, IGVM, and other types.
Variants§
BootSuccess
Boot was successful.
BootFailed
Boot failed.
NoBootDevice
No boot device could be found.
BootAttempt
A boot attempt was made.
Trait Implementations§
Source§impl Clone for FirmwareEvent
impl Clone for FirmwareEvent
Source§fn clone(&self) -> FirmwareEvent
fn clone(&self) -> FirmwareEvent
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 FirmwareEvent
impl Debug for FirmwareEvent
Source§impl DefaultEncoding for FirmwareEvent
impl DefaultEncoding for FirmwareEvent
Source§impl<'encoding, AnyR: 'static> OneofDecode<'encoding, AnyR> for FirmwareEvent
impl<'encoding, AnyR: 'static> OneofDecode<'encoding, AnyR> for FirmwareEvent
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 FirmwareEvent
impl<AnyR: 'static> OneofEncode<AnyR> for FirmwareEvent
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 FirmwareEvent
impl PartialEq for FirmwareEvent
impl Copy for FirmwareEvent
impl Eq for FirmwareEvent
impl StructuralPartialEq for FirmwareEvent
Auto Trait Implementations§
impl Freeze for FirmwareEvent
impl RefUnwindSafe for FirmwareEvent
impl Send for FirmwareEvent
impl Sync for FirmwareEvent
impl Unpin for FirmwareEvent
impl UnwindSafe for FirmwareEvent
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
].