pub struct VariableAttributes(/* private fields */);Expand description
UEFI variable attribute bitmask.
Controls persistence, access, and authentication of UEFI variables. (UEFI specification §8.2)
Implementations§
Source§impl VariableAttributes
impl VariableAttributes
Sourcepub const NON_VOLATILE: Self
pub const NON_VOLATILE: Self
Variable is stored in non-volatile storage.
Sourcepub const BOOTSERVICE_ACCESS: Self
pub const BOOTSERVICE_ACCESS: Self
Variable is accessible during boot services.
Sourcepub const RUNTIME_ACCESS: Self
pub const RUNTIME_ACCESS: Self
Variable is accessible during runtime (after ExitBootServices).
Sourcepub const HARDWARE_ERROR_RECORD: Self
pub const HARDWARE_ERROR_RECORD: Self
Variable is a hardware error record.
Sourcepub const AUTHENTICATED_WRITE_ACCESS: Self
pub const AUTHENTICATED_WRITE_ACCESS: Self
Authenticated write access (deprecated since UEFI 2.8).
Sourcepub const TIME_BASED_AUTHENTICATED_WRITE_ACCESS: Self
pub const TIME_BASED_AUTHENTICATED_WRITE_ACCESS: Self
Time-based authenticated write access.
Sourcepub const APPEND_WRITE: Self
pub const APPEND_WRITE: Self
Append the supplied data to an existing variable.
Sourcepub const ENHANCED_AUTHENTICATED_ACCESS: Self
pub const ENHANCED_AUTHENTICATED_ACCESS: Self
Enhanced authenticated access (UEFI 2.6+).
Sourcepub const fn from_bits_retain(bits: u32) -> Self
pub const fn from_bits_retain(bits: u32) -> Self
Wraps raw bits, keeping any bits that no flag declares.
Sourcepub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits(bits: u32) -> Option<Self>
Wraps raw bits, returning None if any bit is undeclared.
Sourcepub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Wraps raw bits, dropping any bit that no flag declares.
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns whether any bit set in other is set in self.
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns whether every bit set in other is set in self.
Sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Sets or clears the bits in other according to value.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
The bits set in both self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
The bits set in self but not in other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
The bits set in exactly one of self and other.
Sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
The declared bits that are not set in self.
Trait Implementations§
Source§impl BitAnd for VariableAttributes
impl BitAnd for VariableAttributes
Source§impl BitAndAssign for VariableAttributes
impl BitAndAssign for VariableAttributes
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
&= operation. Read moreSource§impl BitOr for VariableAttributes
impl BitOr for VariableAttributes
Source§impl BitOrAssign for VariableAttributes
impl BitOrAssign for VariableAttributes
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
|= operation. Read moreSource§impl BitXor for VariableAttributes
impl BitXor for VariableAttributes
Source§impl BitXorAssign for VariableAttributes
impl BitXorAssign for VariableAttributes
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
^= operation. Read moreSource§impl Clone for VariableAttributes
impl Clone for VariableAttributes
impl Copy for VariableAttributes
Source§impl Debug for VariableAttributes
impl Debug for VariableAttributes
impl Eq for VariableAttributes
Source§impl Not for VariableAttributes
impl Not for VariableAttributes
Source§impl PartialEq for VariableAttributes
impl PartialEq for VariableAttributes
impl StructuralPartialEq for VariableAttributes
Source§impl Sub for VariableAttributes
impl Sub for VariableAttributes
Source§impl SubAssign for VariableAttributes
impl SubAssign for VariableAttributes
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-= operation. Read more