#[non_exhaustive]pub enum EntropyError {
InsufficientEntropy,
ReadFailed(&'static str),
SourceUnavailable,
}Expand description
Entropy-related errors
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.
InsufficientEntropy
Insufficient entropy available
ReadFailed(&'static str)
Failed to read from entropy source
Entropy source unavailable
Trait Implementations§
Source§impl Clone for EntropyError
impl Clone for EntropyError
Source§fn clone(&self) -> EntropyError
fn clone(&self) -> EntropyError
Returns a duplicate of the value. Read more
1.0.0 · 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 EntropyError
impl Debug for EntropyError
Source§impl Display for EntropyError
impl Display for EntropyError
Source§impl From<EntropyError> for Error
impl From<EntropyError> for Error
Source§fn from(err: EntropyError) -> Self
fn from(err: EntropyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntropyError
impl PartialEq for EntropyError
impl Eq for EntropyError
impl StructuralPartialEq for EntropyError
Auto Trait Implementations§
impl Freeze for EntropyError
impl RefUnwindSafe for EntropyError
impl Send for EntropyError
impl Sync for EntropyError
impl Unpin for EntropyError
impl UnwindSafe for EntropyError
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