pub struct BasicAuthentication<Credential> { /* private fields */ }
Expand description
Authentication using HTTP Basic authentication on the initial call without waiting for a challenge.
Implementations§
Trait Implementations§
Source§impl<Credential> AuthenticationProtocol for BasicAuthentication<Credential>where
Credential: AuthenticationCredential,
<Credential as AuthenticationCredential>::Fetch: FetchedUsernamePassword,
impl<Credential> AuthenticationProtocol for BasicAuthentication<Credential>where
Credential: AuthenticationCredential,
<Credential as AuthenticationCredential>::Fetch: FetchedUsernamePassword,
type Request = Request<Body>
type Response = Response<Body>
type Error = Error
fn step( &self, ) -> Result<Option<AuthenticationStep<Self::Request>>, AuthenticError>
fn respond(&mut self, response: Result<Self::Response, Self::Error>)
fn has_completed( &mut self, response: &Self::Response, ) -> Result<bool, AuthenticError>
Source§impl<Credential> AuthenticationProtocolConfigure<Builder> for BasicAuthentication<Credential>where
Credential: AuthenticationCredential,
<Credential as AuthenticationCredential>::Fetch: FetchedUsernamePassword,
impl<Credential> AuthenticationProtocolConfigure<Builder> for BasicAuthentication<Credential>where
Credential: AuthenticationCredential,
<Credential as AuthenticationCredential>::Fetch: FetchedUsernamePassword,
Auto Trait Implementations§
impl<Credential> Freeze for BasicAuthentication<Credential>
impl<Credential> RefUnwindSafe for BasicAuthentication<Credential>where
Credential: RefUnwindSafe,
impl<Credential> Send for BasicAuthentication<Credential>
impl<Credential> Sync for BasicAuthentication<Credential>
impl<Credential> Unpin for BasicAuthentication<Credential>
impl<Credential> UnwindSafe for BasicAuthentication<Credential>where
Credential: RefUnwindSafe,
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