[][src]Struct x86_64::registers::model_specific::EferFlags

pub struct EferFlags { /* fields omitted */ }

Flags of the Extended Feature Enable Register.

Implementations

impl EferFlags[src]

pub const SYSTEM_CALL_EXTENSIONS: EferFlags[src]

Enables the syscall and sysret instructions.

pub const LONG_MODE_ENABLE: EferFlags[src]

Activates long mode, requires activating paging.

pub const LONG_MODE_ACTIVE: EferFlags[src]

Indicates that long mode is active.

pub const NO_EXECUTE_ENABLE: EferFlags[src]

Enables the no-execute page-protection feature.

pub const SECURE_VIRTUAL_MACHINE_ENABLE: EferFlags[src]

Enables SVM extensions.

pub const LONG_MODE_SEGMENT_LIMIT_ENABLE: EferFlags[src]

Enable certain limit checks in 64-bit mode.

pub const FAST_FXSAVE_FXRSTOR: EferFlags[src]

Enable the fxsave and fxrstor instructions to execute faster in 64-bit mode.

pub const TRANSLATION_CACHE_EXTENSION: EferFlags[src]

Changes how the invlpg instruction operates on TLB entries of upper-level entries.

pub fn empty() -> EferFlags[src]

Returns an empty set of flags

pub fn all() -> EferFlags[src]

Returns the set containing all flags.

pub fn bits(&self) -> u64[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u64) -> Option<EferFlags>[src]

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

pub fn from_bits_truncate(bits: u64) -> EferFlags[src]

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

pub unsafe fn from_bits_unchecked(bits: u64) -> EferFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub fn intersects(&self, other: EferFlags) -> bool[src]

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

pub fn contains(&self, other: EferFlags) -> bool[src]

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

pub fn insert(&mut self, other: EferFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: EferFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: EferFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: EferFlags, value: bool)[src]

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

Trait Implementations

impl Binary for EferFlags[src]

impl BitAnd<EferFlags> for EferFlags[src]

type Output = EferFlags

The resulting type after applying the & operator.

fn bitand(self, other: EferFlags) -> EferFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<EferFlags> for EferFlags[src]

fn bitand_assign(&mut self, other: EferFlags)[src]

Disables all flags disabled in the set.

impl BitOr<EferFlags> for EferFlags[src]

type Output = EferFlags

The resulting type after applying the | operator.

fn bitor(self, other: EferFlags) -> EferFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<EferFlags> for EferFlags[src]

fn bitor_assign(&mut self, other: EferFlags)[src]

Adds the set of flags.

impl BitXor<EferFlags> for EferFlags[src]

type Output = EferFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: EferFlags) -> EferFlags[src]

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

impl BitXorAssign<EferFlags> for EferFlags[src]

fn bitxor_assign(&mut self, other: EferFlags)[src]

Toggles the set of flags.

impl Clone for EferFlags[src]

impl Copy for EferFlags[src]

impl Debug for EferFlags[src]

impl Eq for EferFlags[src]

impl Extend<EferFlags> for EferFlags[src]

impl FromIterator<EferFlags> for EferFlags[src]

impl Hash for EferFlags[src]

impl LowerHex for EferFlags[src]

impl Not for EferFlags[src]

type Output = EferFlags

The resulting type after applying the ! operator.

fn not(self) -> EferFlags[src]

Returns the complement of this set of flags.

impl Octal for EferFlags[src]

impl Ord for EferFlags[src]

impl PartialEq<EferFlags> for EferFlags[src]

impl PartialOrd<EferFlags> for EferFlags[src]

impl StructuralEq for EferFlags[src]

impl StructuralPartialEq for EferFlags[src]

impl Sub<EferFlags> for EferFlags[src]

type Output = EferFlags

The resulting type after applying the - operator.

fn sub(self, other: EferFlags) -> EferFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<EferFlags> for EferFlags[src]

fn sub_assign(&mut self, other: EferFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for EferFlags[src]

Auto Trait Implementations

impl Send for EferFlags

impl Sync for EferFlags

impl Unpin for EferFlags

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.