pub enum RelayTicketError {
NoSecret,
Malformed,
BadSignature,
BindingMismatch,
Expired,
ClockSkew,
Replayed,
}Variants§
NoSecret
This node holds no per-pair secret, so it cannot verify any ticket and has nothing to distinguish its own ground station from anything else holding the shared fleet radio key. Refusing is the only safe answer: admitting would hand radio range this node’s full on-box authority.
Malformed
Not a ticket of this version’s shape.
BadSignature
The HMAC does not verify under this node’s secret.
BindingMismatch
Authentic, but minted for a different scope, target, method, path or body than the request it arrived with.
Expired
Its expiry is further in the past than the clock tolerance allows.
ClockSkew
Issued further in the future than the clock tolerance allows.
Replayed
Its nonce has already been spent.
Implementations§
Trait Implementations§
Source§impl Clone for RelayTicketError
impl Clone for RelayTicketError
impl Copy for RelayTicketError
Source§impl Debug for RelayTicketError
impl Debug for RelayTicketError
Source§impl Display for RelayTicketError
impl Display for RelayTicketError
impl Eq for RelayTicketError
Source§impl Error for RelayTicketError
impl Error for RelayTicketError
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 RelayTicketError
impl PartialEq for RelayTicketError
impl StructuralPartialEq for RelayTicketError
Auto Trait Implementations§
impl Freeze for RelayTicketError
impl RefUnwindSafe for RelayTicketError
impl Send for RelayTicketError
impl Sync for RelayTicketError
impl Unpin for RelayTicketError
impl UnsafeUnpin for RelayTicketError
impl UnwindSafe for RelayTicketError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.