pub enum ConstantTimePolicy {
BestEffort,
Strict,
}Expand description
Selects how aggressively cryptographic code paths avoid data-dependent timing.
Variants§
BestEffort
Prefer constant-time implementations where available without failing unsupported operations.
Strict
Require strict constant-time behavior where the build policy enables it.
Trait Implementations§
Source§impl Clone for ConstantTimePolicy
impl Clone for ConstantTimePolicy
Source§fn clone(&self) -> ConstantTimePolicy
fn clone(&self) -> ConstantTimePolicy
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 ConstantTimePolicy
impl Debug for ConstantTimePolicy
Source§impl PartialEq for ConstantTimePolicy
impl PartialEq for ConstantTimePolicy
Source§fn eq(&self, other: &ConstantTimePolicy) -> bool
fn eq(&self, other: &ConstantTimePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConstantTimePolicy
impl Eq for ConstantTimePolicy
impl StructuralPartialEq for ConstantTimePolicy
Auto Trait Implementations§
impl Freeze for ConstantTimePolicy
impl RefUnwindSafe for ConstantTimePolicy
impl Send for ConstantTimePolicy
impl Sync for ConstantTimePolicy
impl Unpin for ConstantTimePolicy
impl UnsafeUnpin for ConstantTimePolicy
impl UnwindSafe for ConstantTimePolicy
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