pub struct RandomBytesError { /* private fields */ }
Expand description
Error that indicates the underlying source of randomness failed to generate the requested random bytes.
This error is typically returned by the operating system.
Implementations§
Trait Implementations§
Source§impl Clone for RandomBytesError
impl Clone for RandomBytesError
Source§fn clone(&self) -> RandomBytesError
fn clone(&self) -> RandomBytesError
Returns a copy 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 RandomBytesError
impl Debug for RandomBytesError
Source§impl Default for RandomBytesError
impl Default for RandomBytesError
Source§fn default() -> RandomBytesError
fn default() -> RandomBytesError
Returns the “default value” for a type. Read more
Source§impl Display for RandomBytesError
impl Display for RandomBytesError
Source§impl Error for RandomBytesError
impl Error for RandomBytesError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for RandomBytesError
impl From<Error> for RandomBytesError
Source§impl From<RandomBytesError> for Error
impl From<RandomBytesError> for Error
Source§fn from(err: RandomBytesError) -> Self
fn from(err: RandomBytesError) -> Self
Converts to this type from the input type.
Source§impl Hash for RandomBytesError
impl Hash for RandomBytesError
Source§impl Ord for RandomBytesError
impl Ord for RandomBytesError
Source§fn cmp(&self, other: &RandomBytesError) -> Ordering
fn cmp(&self, other: &RandomBytesError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RandomBytesError
impl PartialEq for RandomBytesError
Source§impl PartialOrd for RandomBytesError
impl PartialOrd for RandomBytesError
impl Copy for RandomBytesError
impl Eq for RandomBytesError
impl StructuralPartialEq for RandomBytesError
Auto Trait Implementations§
impl Freeze for RandomBytesError
impl RefUnwindSafe for RandomBytesError
impl Send for RandomBytesError
impl Sync for RandomBytesError
impl Unpin for RandomBytesError
impl UnwindSafe for RandomBytesError
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