Enum rand::jitter::TimerError
source · pub enum TimerError {
NoTimer,
CoarseTimer,
NotMonotonic,
TinyVariantions,
TooManyStuck,
// some variants omitted
}
Expand description
An error that can occur when test_timer
fails.
Variants
NoTimer
No timer available.
CoarseTimer
Timer too coarse to use as an entropy source.
NotMonotonic
Timer is not monotonically increasing.
TinyVariantions
Variations of deltas of time too small.
TooManyStuck
Too many stuck results (indicating no added entropy).
Trait Implementations
sourceimpl Clone for TimerError
impl Clone for TimerError
sourcefn clone(&self) -> TimerError
fn clone(&self) -> TimerError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TimerError
impl Debug for TimerError
sourceimpl Display for TimerError
impl Display for TimerError
sourceimpl Error for TimerError
impl Error for TimerError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<TimerError> for TimerError
impl PartialEq<TimerError> for TimerError
sourcefn eq(&self, other: &TimerError) -> bool
fn eq(&self, other: &TimerError) -> bool
impl Eq for TimerError
impl StructuralEq for TimerError
impl StructuralPartialEq for TimerError
Auto Trait Implementations
impl RefUnwindSafe for TimerError
impl Send for TimerError
impl Sync for TimerError
impl Unpin for TimerError
impl UnwindSafe for TimerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more