Struct uefi_specs::uefi::nvram::EfiVariableAttributes
source · pub struct EfiVariableAttributes(/* private fields */);
Expand description
UEFI spec 8.2 - Variable Services
Implementations§
source§impl EfiVariableAttributes
impl EfiVariableAttributes
sourcepub const fn non_volatile(&self) -> bool
pub const fn non_volatile(&self) -> bool
Bits: 0..1
sourcepub const fn with_non_volatile(self, value: bool) -> Self
pub const fn with_non_volatile(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_non_volatile(&mut self, value: bool)
pub fn set_non_volatile(&mut self, value: bool)
Bits: 0..1
sourcepub const fn bootservice_access(&self) -> bool
pub const fn bootservice_access(&self) -> bool
Bits: 1..2
sourcepub const fn with_bootservice_access(self, value: bool) -> Self
pub const fn with_bootservice_access(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_bootservice_access(&mut self, value: bool)
pub fn set_bootservice_access(&mut self, value: bool)
Bits: 1..2
sourcepub const fn runtime_access(&self) -> bool
pub const fn runtime_access(&self) -> bool
Bits: 2..3
sourcepub const fn with_runtime_access(self, value: bool) -> Self
pub const fn with_runtime_access(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_runtime_access(&mut self, value: bool)
pub fn set_runtime_access(&mut self, value: bool)
Bits: 2..3
sourcepub const fn hardware_error_record(&self) -> bool
pub const fn hardware_error_record(&self) -> bool
Bits: 3..4
sourcepub const fn with_hardware_error_record(self, value: bool) -> Self
pub const fn with_hardware_error_record(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_hardware_error_record(&mut self, value: bool)
pub fn set_hardware_error_record(&mut self, value: bool)
Bits: 3..4
sourcepub const fn authenticated_write_access(&self) -> bool
pub const fn authenticated_write_access(&self) -> bool
Bits: 4..5
sourcepub const fn with_authenticated_write_access(self, value: bool) -> Self
pub const fn with_authenticated_write_access(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_authenticated_write_access(&mut self, value: bool)
pub fn set_authenticated_write_access(&mut self, value: bool)
Bits: 4..5
sourcepub const fn time_based_authenticated_write_access(&self) -> bool
pub const fn time_based_authenticated_write_access(&self) -> bool
Bits: 5..6
sourcepub const fn with_time_based_authenticated_write_access(
self,
value: bool,
) -> Self
pub const fn with_time_based_authenticated_write_access( self, value: bool, ) -> Self
Bits: 5..6
sourcepub fn set_time_based_authenticated_write_access(&mut self, value: bool)
pub fn set_time_based_authenticated_write_access(&mut self, value: bool)
Bits: 5..6
sourcepub const fn append_write(&self) -> bool
pub const fn append_write(&self) -> bool
Bits: 6..7
sourcepub const fn with_append_write(self, value: bool) -> Self
pub const fn with_append_write(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_append_write(&mut self, value: bool)
pub fn set_append_write(&mut self, value: bool)
Bits: 6..7
sourcepub const fn enhanced_authenticated_access(&self) -> bool
pub const fn enhanced_authenticated_access(&self) -> bool
Bits: 7..8
sourcepub const fn with_enhanced_authenticated_access(self, value: bool) -> Self
pub const fn with_enhanced_authenticated_access(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_enhanced_authenticated_access(&mut self, value: bool)
pub fn set_enhanced_authenticated_access(&mut self, value: bool)
Bits: 7..8
source§impl EfiVariableAttributes
impl EfiVariableAttributes
pub const DEFAULT_ATTRIBUTES: EfiVariableAttributes = _
pub const DEFAULT_ATTRIBUTES_VOLATILE: EfiVariableAttributes = _
pub const DEFAULT_ATTRIBUTES_TIME_BASED_AUTH: EfiVariableAttributes = _
pub fn contains_unsupported_bits(&self) -> bool
Trait Implementations§
source§impl Clone for EfiVariableAttributes
impl Clone for EfiVariableAttributes
source§fn clone(&self) -> EfiVariableAttributes
fn clone(&self) -> EfiVariableAttributes
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 EfiVariableAttributes
impl Debug for EfiVariableAttributes
source§impl Default for EfiVariableAttributes
impl Default for EfiVariableAttributes
source§impl From<EfiVariableAttributes> for u32
impl From<EfiVariableAttributes> for u32
source§fn from(v: EfiVariableAttributes) -> u32
fn from(v: EfiVariableAttributes) -> u32
Converts to this type from the input type.
source§impl From<u32> for EfiVariableAttributes
impl From<u32> for EfiVariableAttributes
source§impl PartialEq for EfiVariableAttributes
impl PartialEq for EfiVariableAttributes
impl Copy for EfiVariableAttributes
impl Eq for EfiVariableAttributes
impl StructuralPartialEq for EfiVariableAttributes
Auto Trait Implementations§
impl Freeze for EfiVariableAttributes
impl RefUnwindSafe for EfiVariableAttributes
impl Send for EfiVariableAttributes
impl Sync for EfiVariableAttributes
impl Unpin for EfiVariableAttributes
impl UnwindSafe for EfiVariableAttributes
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
)