#[non_exhaustive]pub enum VerifyError<E> {
Parse(ParseError),
InvalidRecipientId,
Recipient,
Algorithm,
Freshness,
Replay,
ClockRegression,
RateLimited,
Signature,
StoreAlreadyConfigured,
Store(Error),
Crypto(E),
}Expand description
Local rejection reason. A network service should keep these diagnostics local.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parse(ParseError)
Wire-format check failed.
InvalidRecipientId
The configured gateway identifier is structurally invalid.
Recipient
The packet addresses a different recipient.
Algorithm
The algorithm identifier is outside the verifier profile.
Freshness
Absolute skew is 30 or more seconds.
Replay
Signed time is at or below the most recently accepted timestamp.
ClockRegression
The caller’s monotonic clock regressed.
RateLimited
All allowed signature attempts in the current rolling minute have been used.
Signature
ECDSA verification failed.
StoreAlreadyConfigured
A verifier with an attached database cannot switch its history.
Store(Error)
The durable replay store could not be opened, read or committed.
Crypto(E)
The cryptographic backend returned an error.
Trait Implementations§
Source§impl<E: Debug> Debug for VerifyError<E>
impl<E: Debug> Debug for VerifyError<E>
Source§impl<E: Display> Display for VerifyError<E>
impl<E: Display> Display for VerifyError<E>
Source§impl<E: Error + 'static> Error for VerifyError<E>
impl<E: Error + 'static> Error for VerifyError<E>
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()
Auto Trait Implementations§
impl<E> !RefUnwindSafe for VerifyError<E>
impl<E> !UnwindSafe for VerifyError<E>
impl<E> Freeze for VerifyError<E>where
E: Freeze,
impl<E> Send for VerifyError<E>where
E: Send,
impl<E> Sync for VerifyError<E>where
E: Sync,
impl<E> Unpin for VerifyError<E>where
E: Unpin,
impl<E> UnsafeUnpin for VerifyError<E>where
E: UnsafeUnpin,
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