Struct firmware_uefi_custom_vars::CustomVars
source · pub struct CustomVars {
pub signatures: Option<Signatures>,
pub custom_vars: Vec<(String, CustomVar)>,
}
Expand description
Collection of UEFI nvram variables that that will be injected on first boot.
Fields§
§signatures: Option<Signatures>
Secure Boot signature vars
custom_vars: Vec<(String, CustomVar)>
Any additional custom vars
Implementations§
source§impl CustomVars
impl CustomVars
sourcepub fn new() -> CustomVars
pub fn new() -> CustomVars
Create a new, blank set of CustomVars.
sourcepub fn apply_delta(
self,
delta: CustomVarsDelta,
) -> Result<CustomVars, ApplyDeltaError>
pub fn apply_delta( self, delta: CustomVarsDelta, ) -> Result<CustomVars, ApplyDeltaError>
Apply a delta on-top of an existing set of CustomVars.
Trait Implementations§
source§impl Clone for CustomVars
impl Clone for CustomVars
source§fn clone(&self) -> CustomVars
fn clone(&self) -> CustomVars
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 CustomVars
impl Debug for CustomVars
source§impl Default for CustomVars
impl Default for CustomVars
source§fn default() -> CustomVars
fn default() -> CustomVars
Returns the “default value” for a type. Read more
source§impl DefaultEncoding for CustomVars
impl DefaultEncoding for CustomVars
source§type Encoding = TableEncoder
type Encoding = TableEncoder
The encoding to use for the serialization. Read more
source§impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for CustomVars
impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for CustomVars
source§const DECODERS: &'static [ErasedDecoderEntry] = _
const DECODERS: &'static [ErasedDecoderEntry] = _
The list of decoder vtables.
source§impl<AnyR: 'static> StructEncodeMetadata<AnyR> for CustomVars
impl<AnyR: 'static> StructEncodeMetadata<AnyR> for CustomVars
source§const ENCODERS: &'static [ErasedEncoderEntry] = _
const ENCODERS: &'static [ErasedEncoderEntry] = _
The list of encoder vtables.
source§impl StructMetadata for CustomVars
impl StructMetadata for CustomVars
impl Downcast<CustomVars> for CustomVars
Auto Trait Implementations§
impl Freeze for CustomVars
impl RefUnwindSafe for CustomVars
impl Send for CustomVars
impl Sync for CustomVars
impl Unpin for CustomVars
impl UnwindSafe for CustomVars
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MeshField for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshField for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
source§impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
impl<T> MeshPayload for Twhere
T: DefaultEncoding + Any + Send + 'static,
<T as DefaultEncoding>::Encoding: MessageEncode<T, Resource> + for<'a> MessageDecode<'a, T, Resource> + FieldEncode<T, Resource> + for<'a> FieldDecode<'a, T, Resource> + Send + Sync,
type Encoding = <T as DefaultEncoding>::Encoding
source§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>,
source§type Encoding = <T as DefaultEncoding>::Encoding
type Encoding = <T as DefaultEncoding>::Encoding
The default encoding for
Self
.source§impl<T> SerializeMessage for Twhere
T: MeshPayload,
impl<T> SerializeMessage for Twhere
T: MeshPayload,
source§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
.source§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in
MessageEncode::write_message
.source§fn extract(self) -> <T as SerializeMessage>::Concrete
fn extract(self) -> <T as SerializeMessage>::Concrete
Extract the concrete message.