pub enum Revalidation {
Valid,
Rejected,
Unavailable,
}Expand description
What a single re-validation of the held credential concluded.
Variants§
Valid
GitHub still accepts the credential, so the 401 was about the request
rather than about the token. One retry is warranted.
Rejected
GitHub rejects the credential. Terminal; only auth login clears it.
The probe itself could not be completed — GitHub was unreachable, or
answered something neither 2xx nor 401. Nothing was learned, so the
caller still gets its one retry.
Trait Implementations§
Source§impl Clone for Revalidation
impl Clone for Revalidation
Source§fn clone(&self) -> Revalidation
fn clone(&self) -> Revalidation
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 moreimpl Copy for Revalidation
Source§impl Debug for Revalidation
impl Debug for Revalidation
impl Eq for Revalidation
Source§impl PartialEq for Revalidation
impl PartialEq for Revalidation
impl StructuralPartialEq for Revalidation
Auto Trait Implementations§
impl Freeze for Revalidation
impl RefUnwindSafe for Revalidation
impl Send for Revalidation
impl Sync for Revalidation
impl Unpin for Revalidation
impl UnsafeUnpin for Revalidation
impl UnwindSafe for Revalidation
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.