pub enum Error {
Random,
Size,
Format,
BadSig,
BadArg,
Internal,
Unknown(i32),
}Variants§
Random
Error::Random is returned when the library tries to use an
OS-provided RNG, but either none is supported, or that RNG fails.
Size
Error::Size is returned when a buffer has been provided to
the library but is too small to receive the intended value.
Format
Error::Format is returned when decoding of an external object
(public key, private key, signature) fails.
BadSig
Error::BadSig is returned when verifying a signature, the signature
is validly encoded, but its value does not match the provided message
and public key.
BadArg
Error::BadArg is returned when a provided parameter is not in
a valid range.
Internal
Error::Internal is returned when some internal computation failed.
Unknown(i32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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