pub enum SpectreV2Mitigation {
Ibrs,
IbpbRetpoline,
IbpbRetpolineStibp,
}Expand description
An architecturally prescribed mitigation for Spectre v2.
Variants§
Ibrs
Enhanced/always-on IBRS (i.e., IBRS that can be enabled once without automatic disabling) is preferred alone.
IbpbRetpoline
IBPB and/or retpoline are recommended.
IbpbRetpolineStibp
IBPB and/or retpoline are recommended - and STIPB, though not preferred as a performant mitigation, is also present and may be used.
Trait Implementations§
Source§impl Clone for SpectreV2Mitigation
impl Clone for SpectreV2Mitigation
Source§fn clone(&self) -> SpectreV2Mitigation
fn clone(&self) -> SpectreV2Mitigation
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 SpectreV2Mitigation
Source§impl Debug for SpectreV2Mitigation
impl Debug for SpectreV2Mitigation
impl Eq for SpectreV2Mitigation
Source§impl PartialEq for SpectreV2Mitigation
impl PartialEq for SpectreV2Mitigation
impl StructuralPartialEq for SpectreV2Mitigation
Auto Trait Implementations§
impl Freeze for SpectreV2Mitigation
impl RefUnwindSafe for SpectreV2Mitigation
impl Send for SpectreV2Mitigation
impl Sync for SpectreV2Mitigation
impl Unpin for SpectreV2Mitigation
impl UnsafeUnpin for SpectreV2Mitigation
impl UnwindSafe for SpectreV2Mitigation
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)