pub enum CryptError {
RoundsError,
RandomError,
IoError(Error),
StringError(FromUtf8Error),
}
Expand description
Error type.
Variants§
RoundsError
Should be within range defs::ROUNDS_MIN < defs::ROUNDS_MIN
RandomError
RNG failed.
IoError(Error)
Available on crate feature
std
only.I/O error.
StringError(FromUtf8Error)
UTF-8 error.
Trait Implementations§
Source§impl Debug for CryptError
impl Debug for CryptError
Source§impl From<Error> for CryptError
impl From<Error> for CryptError
Source§impl From<FromUtf8Error> for CryptError
impl From<FromUtf8Error> for CryptError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CryptError
impl !RefUnwindSafe for CryptError
impl Send for CryptError
impl Sync for CryptError
impl Unpin for CryptError
impl !UnwindSafe for CryptError
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