Enum rustix::process::SpeculationFeature
source · #[repr(u32)]pub enum SpeculationFeature {
SpeculativeStoreBypass = 0,
IndirectBranchSpeculation = 1,
FlushL1DCacheOnContextSwitchOutOfTask = 2,
}
Expand description
PR_SPEC_*
values for use with speculative_feature_state
and
control_speculative_feature
.
Variants§
SpeculativeStoreBypass = 0
Set the state of the speculative store bypass misfeature.
IndirectBranchSpeculation = 1
Set the state of the indirect branch speculation misfeature.
FlushL1DCacheOnContextSwitchOutOfTask = 2
Flush L1D Cache on context switch out of the task.
Trait Implementations§
source§impl Clone for SpeculationFeature
impl Clone for SpeculationFeature
source§fn clone(&self) -> SpeculationFeature
fn clone(&self) -> SpeculationFeature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpeculationFeature
impl Debug for SpeculationFeature
source§impl PartialEq for SpeculationFeature
impl PartialEq for SpeculationFeature
source§fn eq(&self, other: &SpeculationFeature) -> bool
fn eq(&self, other: &SpeculationFeature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for SpeculationFeature
impl TryFrom<u32> for SpeculationFeature
impl Copy for SpeculationFeature
impl Eq for SpeculationFeature
impl StructuralEq for SpeculationFeature
impl StructuralPartialEq for SpeculationFeature
Auto Trait Implementations§
impl RefUnwindSafe for SpeculationFeature
impl Send for SpeculationFeature
impl Sync for SpeculationFeature
impl Unpin for SpeculationFeature
impl UnwindSafe for SpeculationFeature
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