#[repr(u8)]pub enum StdEntropyError {
GenericKernelError = 0,
UnsupportedPlatform = 1,
}Expand description
An enum for handling various failures of entropy generation.
Variants§
GenericKernelError = 0
Kernel returned an error.
UnsupportedPlatform = 1
The current platform is not supported.
Trait Implementations§
Source§impl Clone for StdEntropyError
impl Clone for StdEntropyError
Source§fn clone(&self) -> StdEntropyError
fn clone(&self) -> StdEntropyError
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 StdEntropyError
Source§impl Debug for StdEntropyError
impl Debug for StdEntropyError
Source§impl Display for StdEntropyError
impl Display for StdEntropyError
impl Eq for StdEntropyError
Source§impl From<Infallible> for StdEntropyError
impl From<Infallible> for StdEntropyError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl Hash for StdEntropyError
impl Hash for StdEntropyError
Source§impl PartialEq for StdEntropyError
impl PartialEq for StdEntropyError
Source§fn eq(&self, other: &StdEntropyError) -> bool
fn eq(&self, other: &StdEntropyError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for StdEntropyError
impl ReprC for StdEntropyError
impl StructuralPartialEq for StdEntropyError
Auto Trait Implementations§
impl Freeze for StdEntropyError
impl RefUnwindSafe for StdEntropyError
impl Send for StdEntropyError
impl Sync for StdEntropyError
impl Unpin for StdEntropyError
impl UnsafeUnpin for StdEntropyError
impl UnwindSafe for StdEntropyError
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