pub enum TicketError {
Malformed,
Expired,
InvalidSignature,
}Expand description
Errors returned when verifying a read-ticket.
Variants§
Malformed
The ticket string is syntactically invalid.
Expired
The ticket’s expiry timestamp is in the past.
InvalidSignature
The HMAC did not match (wrong path, tampered data, or wrong key).
Trait Implementations§
Source§impl Debug for TicketError
impl Debug for TicketError
Source§impl Display for TicketError
impl Display for TicketError
impl Eq for TicketError
Source§impl Error for TicketError
impl Error for TicketError
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 TicketError
impl PartialEq for TicketError
Source§fn eq(&self, other: &TicketError) -> bool
fn eq(&self, other: &TicketError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TicketError
Auto Trait Implementations§
impl Freeze for TicketError
impl RefUnwindSafe for TicketError
impl Send for TicketError
impl Sync for TicketError
impl Unpin for TicketError
impl UnsafeUnpin for TicketError
impl UnwindSafe for TicketError
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