pub struct BasicAuthenticator { /* private fields */ }Expand description
Built-in Authenticator validating Authorization: Basic <base64> credentials.
Implementations§
Source§impl BasicAuthenticator
Inherent implementation of BasicAuthenticator.
impl BasicAuthenticator
Inherent implementation of BasicAuthenticator.
Trait Implementations§
Source§impl Authenticator for BasicAuthenticator
Implements Authenticator for BasicAuthenticator.
impl Authenticator for BasicAuthenticator
Implements Authenticator for BasicAuthenticator.
Source§fn authenticate<'a>(&'a self, ctx: &'a Context) -> AuthFuture<'a>
fn authenticate<'a>(&'a self, ctx: &'a Context) -> AuthFuture<'a>
Authenticates Authorization: Basic <base64> using constant-time password checks.
§Arguments
&'a self- Shared reference to self.&'a Context- Incoming request context.
§Returns
AuthFuture<'a>- Future resolving toAuthPrincipalorAuthError.
Source§impl Clone for BasicAuthenticator
impl Clone for BasicAuthenticator
Source§impl Debug for BasicAuthenticator
impl Debug for BasicAuthenticator
Source§impl Default for BasicAuthenticator
Default construction for BasicAuthenticator.
impl Default for BasicAuthenticator
Default construction for BasicAuthenticator.
Source§fn default() -> Self
fn default() -> Self
Constructs an empty BasicAuthenticator.
Auto Trait Implementations§
impl Forget for BasicAuthenticator
impl Freeze for BasicAuthenticatorwhere
PhantomData<fn() -> XxHash3_64>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(String, (Vec<u8>, Vec<String>))>: Freeze,
impl Move for BasicAuthenticator
impl RefUnwindSafe for BasicAuthenticator
impl Send for BasicAuthenticator
impl Sync for BasicAuthenticator
impl Unpin for BasicAuthenticator
impl UnsafeUnpin for BasicAuthenticatorwhere
PhantomData<fn() -> XxHash3_64>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, (Vec<u8>, Vec<String>))>: UnsafeUnpin,
impl UnwindSafe for BasicAuthenticator
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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