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§impl TryFrom<u32> for SpeculationFeature
impl TryFrom<u32> for SpeculationFeature
impl Copy for SpeculationFeature
impl Eq for SpeculationFeature
impl StructuralPartialEq for SpeculationFeature
Auto Trait Implementations§
impl Freeze for SpeculationFeature
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)