Struct HclCompatNvramQuirks
pub struct HclCompatNvramQuirks {
pub skip_corrupt_vars_with_missing_null_term: bool,
}Expand description
“Quirks” to take into account when loading/storing nvram blob data.
Fields§
§skip_corrupt_vars_with_missing_null_term: boolWhen loading nvram variables from storage, don’t fail the entire load process when encountering variables that are missing null terminators in their name. Instead, skip loading any such variables, and continue on with the load.
§Context
Due to a (now fixed) bug in a previous version of Microsoft HCL, it was possible for non-null-terminated nvram variables to slip-through validation and get persisted to disk.
Enabling this quirk will allow “salvaging” the rest of the non-corrupt nvram variables, which may be preferable over having the VM fail to boot at all.
Trait Implementations§
§impl Clone for HclCompatNvramQuirks
impl Clone for HclCompatNvramQuirks
§fn clone(&self) -> HclCompatNvramQuirks
fn clone(&self) -> HclCompatNvramQuirks
Returns a duplicate 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 more§impl DefaultEncoding for HclCompatNvramQuirks
impl DefaultEncoding for HclCompatNvramQuirks
§impl Inspect for HclCompatNvramQuirks
impl Inspect for HclCompatNvramQuirks
§impl<'encoding, AnyR> StructDecodeMetadata<'encoding, AnyR> for HclCompatNvramQuirkswhere
AnyR: 'static,
impl<'encoding, AnyR> StructDecodeMetadata<'encoding, AnyR> for HclCompatNvramQuirkswhere
AnyR: 'static,
§impl<AnyR> StructEncodeMetadata<AnyR> for HclCompatNvramQuirkswhere
AnyR: 'static,
impl<AnyR> StructEncodeMetadata<AnyR> for HclCompatNvramQuirkswhere
AnyR: 'static,
Auto Trait Implementations§
impl Freeze for HclCompatNvramQuirks
impl RefUnwindSafe for HclCompatNvramQuirks
impl Send for HclCompatNvramQuirks
impl Sync for HclCompatNvramQuirks
impl Unpin for HclCompatNvramQuirks
impl UnsafeUnpin for HclCompatNvramQuirks
impl UnwindSafe for HclCompatNvramQuirks
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].