[]Struct sgx_isa::SecinfoFlags

#[repr(C)]
pub struct SecinfoFlags { /* fields omitted */ }

Methods

impl SecinfoFlags

pub const R: SecinfoFlags

pub const W: SecinfoFlags

pub const X: SecinfoFlags

pub const PENDING: SecinfoFlags

pub const MODIFIED: SecinfoFlags

pub const PR: SecinfoFlags

pub const PT_MASK: SecinfoFlags

pub const PT_B0: SecinfoFlags

pub const PT_B1: SecinfoFlags

pub const PT_B2: SecinfoFlags

pub const PT_B3: SecinfoFlags

pub const PT_B4: SecinfoFlags

pub const PT_B5: SecinfoFlags

pub const PT_B6: SecinfoFlags

pub const PT_B7: SecinfoFlags

pub fn empty() -> SecinfoFlags

Returns an empty set of flags.

pub fn all() -> SecinfoFlags

Returns the set containing all flags.

pub fn bits(&self) -> u64

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<SecinfoFlags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub fn from_bits_truncate(bits: u64) -> SecinfoFlags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

pub fn is_all(&self) -> bool

Returns true if all flags are currently set.

pub fn intersects(&self, other: SecinfoFlags) -> bool

Returns true if there are flags common to both self and other.

pub fn contains(&self, other: SecinfoFlags) -> bool

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: SecinfoFlags)

Inserts the specified flags in-place.

pub fn remove(&mut self, other: SecinfoFlags)

Removes the specified flags in-place.

pub fn toggle(&mut self, other: SecinfoFlags)

Toggles the specified flags in-place.

pub fn set(&mut self, other: SecinfoFlags, value: bool)

Inserts or removes the specified flags depending on the passed value.

impl SecinfoFlags
[src]

pub fn page_type(&self) -> u8
[src]

pub fn page_type_mut(&mut self) -> &mut u8
[src]

Trait Implementations

impl Copy for SecinfoFlags

impl PartialEq<SecinfoFlags> for SecinfoFlags

impl Eq for SecinfoFlags

impl Ord for SecinfoFlags

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd<SecinfoFlags> for SecinfoFlags

impl Clone for SecinfoFlags

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SecinfoFlags

impl Sub<SecinfoFlags> for SecinfoFlags

type Output = SecinfoFlags

The resulting type after applying the - operator.

fn sub(self, other: SecinfoFlags) -> SecinfoFlags

Returns the set difference of the two sets of flags.

impl From<PageType> for SecinfoFlags
[src]

impl Hash for SecinfoFlags

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl SubAssign<SecinfoFlags> for SecinfoFlags

fn sub_assign(&mut self, other: SecinfoFlags)

Disables all flags enabled in the set.

impl Not for SecinfoFlags

type Output = SecinfoFlags

The resulting type after applying the ! operator.

fn not(self) -> SecinfoFlags

Returns the complement of this set of flags.

impl BitAnd<SecinfoFlags> for SecinfoFlags

type Output = SecinfoFlags

The resulting type after applying the & operator.

fn bitand(self, other: SecinfoFlags) -> SecinfoFlags

Returns the intersection between the two sets of flags.

impl BitOr<SecinfoFlags> for SecinfoFlags

type Output = SecinfoFlags

The resulting type after applying the | operator.

fn bitor(self, other: SecinfoFlags) -> SecinfoFlags

Returns the union of the two sets of flags.

impl BitXor<SecinfoFlags> for SecinfoFlags

type Output = SecinfoFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: SecinfoFlags) -> SecinfoFlags

Returns the left flags, but with all the right flags toggled.

impl BitAndAssign<SecinfoFlags> for SecinfoFlags

fn bitand_assign(&mut self, other: SecinfoFlags)

Disables all flags disabled in the set.

impl BitOrAssign<SecinfoFlags> for SecinfoFlags

fn bitor_assign(&mut self, other: SecinfoFlags)

Adds the set of flags.

impl BitXorAssign<SecinfoFlags> for SecinfoFlags

fn bitxor_assign(&mut self, other: SecinfoFlags)

Toggles the set of flags.

impl Extend<SecinfoFlags> for SecinfoFlags

impl FromIterator<SecinfoFlags> for SecinfoFlags

impl Octal for SecinfoFlags

impl Binary for SecinfoFlags

impl LowerHex for SecinfoFlags

impl UpperHex for SecinfoFlags

impl Default for SecinfoFlags
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]