pub enum FastCryptoError {
InvalidInput,
InputTooShort(usize),
InputTooLong(usize),
InputLengthWrong(usize),
InvalidSignature,
InvalidProof,
NotEnoughInputs,
InvalidMessage,
IgnoredMessage,
GeneralError(String),
GeneralOpaqueError,
}Expand description
Collection of errors to be used in fastcrypto.
Variants§
InvalidInput
Invalid value was given to the function
InputTooShort(usize)
Input is to short.
InputTooLong(usize)
Input is to long.
InputLengthWrong(usize)
Input length is wrong.
InvalidSignature
Invalid signature was given to the function
InvalidProof
Invalid proof was given to the function
NotEnoughInputs
Not enough inputs were given to the function, retry with more
InvalidMessage
Invalid message was given to the function
IgnoredMessage
Message should be ignored
GeneralError(String)
General cryptographic error.
GeneralOpaqueError
General opaque cryptographic error.
Trait Implementations§
Source§impl Clone for FastCryptoError
impl Clone for FastCryptoError
Source§fn clone(&self) -> FastCryptoError
fn clone(&self) -> FastCryptoError
Returns a duplicate 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 FastCryptoError
impl Debug for FastCryptoError
Source§impl Display for FastCryptoError
impl Display for FastCryptoError
Source§impl Error for FastCryptoError
impl Error for FastCryptoError
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 PartialEq for FastCryptoError
impl PartialEq for FastCryptoError
impl Eq for FastCryptoError
impl StructuralPartialEq for FastCryptoError
Auto Trait Implementations§
impl Freeze for FastCryptoError
impl RefUnwindSafe for FastCryptoError
impl Send for FastCryptoError
impl Sync for FastCryptoError
impl Unpin for FastCryptoError
impl UnwindSafe for FastCryptoError
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