#[non_exhaustive]pub enum WipePosture {
HardwareFence,
CompilerFenceOnly,
}Expand description
Wipe-barrier posture for this build and target.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HardwareFence
The target uses a native store-ordering hardware fence in addition to volatile writes and compiler fences.
This describes wipe-store ordering only. It is separate from
CtGatePosture, which reports whether the constant-time result
gate has a speculation barrier or only an ordering fence.
CompilerFenceOnly
The target uses volatile writes and compiler fences only.
Implementations§
Trait Implementations§
Source§impl Clone for WipePosture
impl Clone for WipePosture
Source§fn clone(&self) -> WipePosture
fn clone(&self) -> WipePosture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WipePosture
impl Debug for WipePosture
Source§impl Display for WipePosture
impl Display for WipePosture
Source§impl PartialEq for WipePosture
impl PartialEq for WipePosture
Source§fn eq(&self, other: &WipePosture) -> bool
fn eq(&self, other: &WipePosture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WipePosture
impl Eq for WipePosture
impl StructuralPartialEq for WipePosture
Auto Trait Implementations§
impl Freeze for WipePosture
impl RefUnwindSafe for WipePosture
impl Send for WipePosture
impl Sync for WipePosture
impl Unpin for WipePosture
impl UnsafeUnpin for WipePosture
impl UnwindSafe for WipePosture
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