pub enum NewEncryptError<R: TryCryptoRng> {
Rng(R::Error),
TooLong(TryFromIntError),
}
Variants§
Rng(R::Error)
TooLong(TryFromIntError)
Trait Implementations§
Source§impl<R: Debug + TryCryptoRng> Debug for NewEncryptError<R>
impl<R: Debug + TryCryptoRng> Debug for NewEncryptError<R>
Source§impl<R: TryCryptoRng> Display for NewEncryptError<R>
impl<R: TryCryptoRng> Display for NewEncryptError<R>
Source§impl<R: TryCryptoRng> Error for NewEncryptError<R>
impl<R: TryCryptoRng> Error for NewEncryptError<R>
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<R: TryCryptoRng> From<TryFromIntError> for NewEncryptError<R>
impl<R: TryCryptoRng> From<TryFromIntError> for NewEncryptError<R>
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for NewEncryptError<R>
impl<R> RefUnwindSafe for NewEncryptError<R>
impl<R> Send for NewEncryptError<R>
impl<R> Sync for NewEncryptError<R>
impl<R> Unpin for NewEncryptError<R>
impl<R> UnwindSafe for NewEncryptError<R>
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