#[non_exhaustive]pub enum TicketErrorCode {
Missing,
Invalid,
MissingKey,
UnknownKey,
Mismatch,
Expired,
InvalidLifetime,
ExpiredKey,
KeyEnvironmentMismatch,
}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.
Missing
Missing “yaxi-ticket” header
Invalid
Invalid ticket
MissingKey
Ticket token lacks “kid”
UnknownKey
Unknown key
Mismatch
Ticket does not match service
Expired
Ticket is expired
InvalidLifetime
Ticket lifetime is too long
ExpiredKey
Expired key
KeyEnvironmentMismatch
Environment mismatch between key and routex
Trait Implementations§
Source§impl Clone for TicketErrorCode
impl Clone for TicketErrorCode
Source§fn clone(&self) -> TicketErrorCode
fn clone(&self) -> TicketErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TicketErrorCode
impl Debug for TicketErrorCode
Source§impl<'de> Deserialize<'de> for TicketErrorCode
impl<'de> Deserialize<'de> for TicketErrorCode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TicketErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TicketErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TicketErrorCode
impl PartialEq for TicketErrorCode
Source§fn eq(&self, other: &TicketErrorCode) -> bool
fn eq(&self, other: &TicketErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TicketErrorCode
impl Serialize for TicketErrorCode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TicketErrorCode
impl Eq for TicketErrorCode
impl StructuralPartialEq for TicketErrorCode
Auto Trait Implementations§
impl Freeze for TicketErrorCode
impl RefUnwindSafe for TicketErrorCode
impl Send for TicketErrorCode
impl Sync for TicketErrorCode
impl Unpin for TicketErrorCode
impl UnsafeUnpin for TicketErrorCode
impl UnwindSafe for TicketErrorCode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.