#[repr(C)]pub struct KeyPolicy(/* private fields */);
Implementations§
source§impl KeyPolicy
impl KeyPolicy
pub const MRENCLAVE: KeyPolicy = _
pub const MRSIGNER: KeyPolicy = _
pub const NOISVPRODID: KeyPolicy = _
pub const CONFIGID: KeyPolicy = _
pub const ISVFAMILYID: KeyPolicy = _
pub const ISVEXTPRODID: KeyPolicy = _
pub const KSS: KeyPolicy = _
pub const fn empty() -> KeyPolicy
pub const fn all() -> KeyPolicy
pub const fn bits(&self) -> u16
pub fn from_bits(bits: u16) -> Option<KeyPolicy>
pub const fn from_bits_truncate(bits: u16) -> KeyPolicy
sourcepub const unsafe fn from_bits_unchecked(bits: u16) -> KeyPolicy
pub const unsafe fn from_bits_unchecked(bits: u16) -> KeyPolicy
pub const fn is_empty(&self) -> bool
pub const fn is_all(&self) -> bool
pub const fn contains(&self, other: KeyPolicy) -> bool
pub const fn intersects(&self, other: KeyPolicy) -> bool
pub fn insert(&mut self, other: KeyPolicy)
pub fn remove(&mut self, other: KeyPolicy)
pub fn toggle(&mut self, other: KeyPolicy)
Trait Implementations§
source§impl BitAndAssign for KeyPolicy
impl BitAndAssign for KeyPolicy
source§fn bitand_assign(&mut self, rhs: KeyPolicy)
fn bitand_assign(&mut self, rhs: KeyPolicy)
Performs the
&=
operation. Read moresource§impl BitOrAssign for KeyPolicy
impl BitOrAssign for KeyPolicy
source§fn bitor_assign(&mut self, rhs: KeyPolicy)
fn bitor_assign(&mut self, rhs: KeyPolicy)
Performs the
|=
operation. Read moresource§impl BitXorAssign for KeyPolicy
impl BitXorAssign for KeyPolicy
source§fn bitxor_assign(&mut self, rhs: KeyPolicy)
fn bitxor_assign(&mut self, rhs: KeyPolicy)
Performs the
^=
operation. Read moresource§impl PartialEq for KeyPolicy
impl PartialEq for KeyPolicy
source§impl SubAssign for KeyPolicy
impl SubAssign for KeyPolicy
source§fn sub_assign(&mut self, rhs: KeyPolicy)
fn sub_assign(&mut self, rhs: KeyPolicy)
Performs the
-=
operation. Read moreimpl ContiguousMemory for KeyPolicy
impl Copy for KeyPolicy
impl Eq for KeyPolicy
impl StructuralEq for KeyPolicy
impl StructuralPartialEq for KeyPolicy
Auto Trait Implementations§
impl RefUnwindSafe for KeyPolicy
impl Send for KeyPolicy
impl Sync for KeyPolicy
impl Unpin for KeyPolicy
impl UnwindSafe for KeyPolicy
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