Enum rand_jitter::TimerError
source · [−]pub enum TimerError {
NoTimer,
CoarseTimer,
NotMonotonic,
TinyVariantions,
TooManyStuck,
// some variants omitted
}
Expand description
An error that can occur when JitterRng::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 more
sourceimpl 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 From<TimerError> for Error
impl From<TimerError> for Error
sourcefn from(err: TimerError) -> Error
fn from(err: TimerError) -> Error
Performs the conversion.
sourceimpl PartialEq<TimerError> for TimerError
impl PartialEq<TimerError> for TimerError
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more