pub struct TsxControlMsr(/* private fields */);Expand description
Layout for IA32_TSX_CTRL.
Implementations§
Source§impl TsxControlMsr
impl TsxControlMsr
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const RTM_DISABLE_MASK: u64
pub const RTM_DISABLE_MASK: u64
Unshifted bitmask of rtm_disable.
Sourcepub const RTM_DISABLE_SHIFT: usize = 1
pub const RTM_DISABLE_SHIFT: usize = 1
Bit shift (i.e., the low bit) of rtm_disable.
Sourcepub const TSX_CPUID_CLEAR_MASK: u64
pub const TSX_CPUID_CLEAR_MASK: u64
Unshifted bitmask of tsx_cpuid_clear.
Sourcepub const TSX_CPUID_CLEAR_SHIFT: usize = 0
pub const TSX_CPUID_CLEAR_SHIFT: usize = 0
Bit shift (i.e., the low bit) of tsx_cpuid_clear.
Sourcepub const FIELDS: [FieldMetadata<u64>; 2]
pub const FIELDS: [FieldMetadata<u64>; 2]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn rtm_disable(&self) -> bool
pub const fn rtm_disable(&self) -> bool
The value of TsxControlMsr1.
Sourcepub const fn set_rtm_disable(&mut self, value: bool) -> &mut Self
pub const fn set_rtm_disable(&mut self, value: bool) -> &mut Self
Sets the value of TsxControlMsr1.
Sourcepub const fn tsx_cpuid_clear(&self) -> bool
pub const fn tsx_cpuid_clear(&self) -> bool
The value of TsxControlMsr0.
Sourcepub const fn set_tsx_cpuid_clear(&mut self, value: bool) -> &mut Self
pub const fn set_tsx_cpuid_clear(&mut self, value: bool) -> &mut Self
Sets the value of TsxControlMsr0.
Trait Implementations§
Source§impl Binary for TsxControlMsr
impl Binary for TsxControlMsr
Source§impl Clone for TsxControlMsr
impl Clone for TsxControlMsr
Source§fn clone(&self) -> TsxControlMsr
fn clone(&self) -> TsxControlMsr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TsxControlMsr
Source§impl Debug for TsxControlMsr
impl Debug for TsxControlMsr
Source§impl Default for TsxControlMsr
impl Default for TsxControlMsr
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for TsxControlMsr
Source§impl From<TsxControlMsr> for u64
impl From<TsxControlMsr> for u64
Source§fn from(value: TsxControlMsr) -> Self
fn from(value: TsxControlMsr) -> Self
Converts to this type from the input type.
Source§impl From<u64> for TsxControlMsr
impl From<u64> for TsxControlMsr
Source§impl IntoIterator for TsxControlMsr
impl IntoIterator for TsxControlMsr
Source§impl<'a> IntoIterator for &'a TsxControlMsr
impl<'a> IntoIterator for &'a TsxControlMsr
Source§impl LowerHex for TsxControlMsr
impl LowerHex for TsxControlMsr
Source§impl Octal for TsxControlMsr
impl Octal for TsxControlMsr
Source§impl PartialEq for TsxControlMsr
impl PartialEq for TsxControlMsr
impl StructuralPartialEq for TsxControlMsr
Auto Trait Implementations§
impl Freeze for TsxControlMsr
impl RefUnwindSafe for TsxControlMsr
impl Send for TsxControlMsr
impl Sync for TsxControlMsr
impl Unpin for TsxControlMsr
impl UnsafeUnpin for TsxControlMsr
impl UnwindSafe for TsxControlMsr
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)