pub enum ConstantTimeFailureKind {
LengthMismatch,
NotEqual,
}Expand description
Specific reason a constant-time comparison did not match.
Variants§
LengthMismatch
The two inputs had different lengths.
NotEqual
The two inputs had equal length but unequal contents.
Trait Implementations§
Source§impl Clone for ConstantTimeFailureKind
impl Clone for ConstantTimeFailureKind
Source§fn clone(&self) -> ConstantTimeFailureKind
fn clone(&self) -> ConstantTimeFailureKind
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 moreimpl Copy for ConstantTimeFailureKind
Source§impl Debug for ConstantTimeFailureKind
impl Debug for ConstantTimeFailureKind
Source§impl Display for ConstantTimeFailureKind
impl Display for ConstantTimeFailureKind
impl Eq for ConstantTimeFailureKind
Source§impl PartialEq for ConstantTimeFailureKind
impl PartialEq for ConstantTimeFailureKind
impl StructuralPartialEq for ConstantTimeFailureKind
Auto Trait Implementations§
impl Freeze for ConstantTimeFailureKind
impl RefUnwindSafe for ConstantTimeFailureKind
impl Send for ConstantTimeFailureKind
impl Sync for ConstantTimeFailureKind
impl Unpin for ConstantTimeFailureKind
impl UnsafeUnpin for ConstantTimeFailureKind
impl UnwindSafe for ConstantTimeFailureKind
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