pub struct BasicRequestAuthenticator<C> { /* private fields */ }
Expand description
A basic implementation of RequestAuthenticator
, that
sets credentials as an typed extension in request.
Trait Implementations§
Source§impl<C: Debug> Debug for BasicRequestAuthenticator<C>
impl<C: Debug> Debug for BasicRequestAuthenticator<C>
Source§impl<C: RequestCredentials> RequestAuthenticator for BasicRequestAuthenticator<C>
impl<C: RequestCredentials> RequestAuthenticator for BasicRequestAuthenticator<C>
Source§type Credentials = C
type Credentials = C
Type of credentials.
Source§fn authenticated<B>(
req: Request<B>,
credentials: Self::Credentials,
) -> Request<B>
fn authenticated<B>( req: Request<B>, credentials: Self::Credentials, ) -> Request<B>
Resolve authenticated request from raw request and
resolved credentials.
Auto Trait Implementations§
impl<C> Freeze for BasicRequestAuthenticator<C>
impl<C> RefUnwindSafe for BasicRequestAuthenticator<C>
impl<C> Send for BasicRequestAuthenticator<C>
impl<C> Sync for BasicRequestAuthenticator<C>
impl<C> Unpin for BasicRequestAuthenticator<C>
impl<C> UnwindSafe for BasicRequestAuthenticator<C>
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<S, P> TryProven<P> for Swhere
P: Predicate<S> + SyncEvaluablePredicate<S>,
impl<S, P> TryProven<P> for Swhere
P: Predicate<S> + SyncEvaluablePredicate<S>,
Source§type Err = ProvenError<S, <P as SyncEvaluablePredicate<S>>::EvalError>
type Err = ProvenError<S, <P as SyncEvaluablePredicate<S>>::EvalError>
Type of error.