pub struct Anonymous;Expand description
The default: no credential is accepted, and no scope is ever held.
The _ => arm is the whole design. A header this does not recognise, a
header that is absent, and a header that is malformed all reach the same
place, because a half-check here would be a credential check that is wrong
in a way nobody can see. The future is already resolved, so awaiting it
costs a poll and nothing else.
Trait Implementations§
Source§impl Authenticator for Anonymous
impl Authenticator for Anonymous
Source§fn authenticate<'a>(
&'a self,
_presented: &'a Credentials<'_>,
) -> Pin<Box<dyn Future<Output = AuthContext> + Send + 'a>>
fn authenticate<'a>( &'a self, _presented: &'a Credentials<'_>, ) -> Pin<Box<dyn Future<Output = AuthContext> + Send + 'a>>
The context
presented is allowed to act under.impl Copy for Anonymous
Auto Trait Implementations§
impl Freeze for Anonymous
impl RefUnwindSafe for Anonymous
impl Send for Anonymous
impl Sync for Anonymous
impl Unpin for Anonymous
impl UnsafeUnpin for Anonymous
impl UnwindSafe for Anonymous
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