Struct General

Source
pub struct General {
Show 39 fields pub secure_boot_enabled: bool, pub secure_boot_template: SecureBootTemplateType, pub bios_guid: Guid, pub console_mode: UefiConsoleMode, pub battery_enabled: bool, pub processor_idle_enabled: bool, pub tpm_enabled: bool, pub com1_enabled: bool, pub com1_debugger_mode: bool, pub com1_vmbus_redirector: bool, pub com2_enabled: bool, pub com2_debugger_mode: bool, pub com2_vmbus_redirector: bool, pub firmware_debugging_enabled: bool, pub hibernation_enabled: bool, pub suppress_attestation: Option<bool>, pub generation_id: Option<[u8; 16]>, pub legacy_memory_map: bool, pub pause_after_boot_failure: bool, pub pxe_ip_v6: bool, pub measure_additional_pcrs: bool, pub disable_frontpage: bool, pub disable_sha384_pcr: bool, pub media_present_enabled_by_default: bool, pub vpci_boot_enabled: bool, pub memory_protection_mode: MemoryProtectionMode, pub num_lock_enabled: bool, pub pcat_boot_device_order: [PcatBootDevice; 4], pub vpci_instance_filter: Option<Guid>, pub nvdimm_count: u16, pub psp_enabled: bool, pub vmbus_redirection_enabled: bool, pub always_relay_host_mmio: bool, pub vtl2_settings: Option<Vtl2Settings>, pub is_servicing_scenario: bool, pub watchdog_enabled: bool, pub firmware_mode_is_pcat: bool, pub imc_enabled: bool, pub cxl_memory_enabled: bool,
}
Expand description

All available general device platform configuration.

Fields§

§secure_boot_enabled: bool§secure_boot_template: SecureBootTemplateType§bios_guid: Guid§console_mode: UefiConsoleMode§battery_enabled: bool§processor_idle_enabled: bool§tpm_enabled: bool§com1_enabled: bool§com1_debugger_mode: bool§com1_vmbus_redirector: bool§com2_enabled: bool§com2_debugger_mode: bool§com2_vmbus_redirector: bool§firmware_debugging_enabled: bool§hibernation_enabled: bool§suppress_attestation: Option<bool>§generation_id: Option<[u8; 16]>§legacy_memory_map: bool§pause_after_boot_failure: bool§pxe_ip_v6: bool§measure_additional_pcrs: bool§disable_frontpage: bool§disable_sha384_pcr: bool§media_present_enabled_by_default: bool§vpci_boot_enabled: bool§memory_protection_mode: MemoryProtectionMode§num_lock_enabled: bool§pcat_boot_device_order: [PcatBootDevice; 4]§vpci_instance_filter: Option<Guid>§nvdimm_count: u16§psp_enabled: bool§vmbus_redirection_enabled: bool§always_relay_host_mmio: bool§vtl2_settings: Option<Vtl2Settings>§is_servicing_scenario: bool§watchdog_enabled: bool§firmware_mode_is_pcat: bool§imc_enabled: bool§cxl_memory_enabled: bool

Trait Implementations§

Source§

impl Debug for General

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Inspect for General

Source§

fn inspect(&self, req: Request<'_>)

Inspects the object.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoAny for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts into a Box<dyn Any>.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more