pub enum RandomBytesError {
NoData,
BadHex,
}Expand description
Errors returned by random_bytes.
Variants§
NoData
The host returned no result.
BadHex
The host returned a malformed hex string. Treat as a hard failure - silently zero-filling would weaken any token derived from it.
Trait Implementations§
Source§impl Debug for RandomBytesError
impl Debug for RandomBytesError
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()
Auto Trait Implementations§
impl Freeze for RandomBytesError
impl RefUnwindSafe for RandomBytesError
impl Send for RandomBytesError
impl Sync for RandomBytesError
impl Unpin for RandomBytesError
impl UnsafeUnpin 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