pub enum MrvbError {
Show 15 variants
SigningFailed(String),
VerificationFailed(String),
InvalidSignature,
InvalidTokenFormat(String),
TokenExpired,
KeysetUnavailable,
InvalidKeyLength {
expected: usize,
actual: usize,
},
UnsupportedAlgorithm(String),
InvalidAlgorithm {
expected: String,
actual: String,
},
CryptoError(String),
InvalidMode(String),
EncodingError(String),
SerializationError(String),
KeyGenerationFailed(String),
Internal(String),
}Expand description
MRVB error types
Variants§
SigningFailed(String)
VerificationFailed(String)
InvalidSignature
InvalidTokenFormat(String)
TokenExpired
InvalidKeyLength
UnsupportedAlgorithm(String)
InvalidAlgorithm
CryptoError(String)
InvalidMode(String)
EncodingError(String)
SerializationError(String)
KeyGenerationFailed(String)
Internal(String)
Trait Implementations§
Source§impl Error for MrvbError
impl Error for MrvbError
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 From<DecodeError> for MrvbError
impl From<DecodeError> for MrvbError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MrvbError
impl RefUnwindSafe for MrvbError
impl Send for MrvbError
impl Sync for MrvbError
impl Unpin for MrvbError
impl UnsafeUnpin for MrvbError
impl UnwindSafe for MrvbError
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