pub enum CredentialBlockKind {
NoCredential,
CredentialRejected,
InsufficientScope,
UnknownAuthFailure,
NotApplicable,
}Expand description
Why the credential failed (or was not provided). Determines operator action.
Variants§
NoCredential
Request had no Authorization header AND response was an auth challenge.
CredentialRejected
Authorization header was present AND response was invalid_token or equivalent.
InsufficientScope
Authorization present AND response was insufficient_scope.
UnknownAuthFailure
Auth challenge fired but the specific failure reason could not be identified.
NotApplicable
511 / proxy-auth — the credential concept does not apply at this layer.
Trait Implementations§
Source§impl Clone for CredentialBlockKind
impl Clone for CredentialBlockKind
Source§fn clone(&self) -> CredentialBlockKind
fn clone(&self) -> CredentialBlockKind
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 CredentialBlockKind
impl Debug for CredentialBlockKind
Source§impl PartialEq for CredentialBlockKind
impl PartialEq for CredentialBlockKind
Source§fn eq(&self, other: &CredentialBlockKind) -> bool
fn eq(&self, other: &CredentialBlockKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CredentialBlockKind
impl Eq for CredentialBlockKind
impl StructuralPartialEq for CredentialBlockKind
Auto Trait Implementations§
impl Freeze for CredentialBlockKind
impl RefUnwindSafe for CredentialBlockKind
impl Send for CredentialBlockKind
impl Sync for CredentialBlockKind
impl Unpin for CredentialBlockKind
impl UnsafeUnpin for CredentialBlockKind
impl UnwindSafe for CredentialBlockKind
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.