Struct actix_web_security::authentication::scheme::basic::authentication_provider::BasicAuthenticationProvider [−][src]
pub struct BasicAuthenticationProvider { /* fields omitted */ }
The definition of a BasicAuthenticationProvider
.
Implementations
impl BasicAuthenticationProvider
[src]
impl BasicAuthenticationProvider
[src]pub fn new(
user_details_service: Box<dyn BasicUserDetailsService>
) -> BasicAuthenticationProvider
[src]
user_details_service: Box<dyn BasicUserDetailsService>
) -> BasicAuthenticationProvider
Constructs an instance of a BasicAuthenticationProvider
for a boxed instance of a BasicUserDetailsService
which does the actual data lookup for the authentication.
Trait Implementations
impl AuthenticationProvider for BasicAuthenticationProvider
[src]
impl AuthenticationProvider for BasicAuthenticationProvider
[src]fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
authentication: &'life1 Box<dyn Authentication>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn UserDetails>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
authentication: &'life1 Box<dyn Authentication>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn UserDetails>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Clone for BasicAuthenticationProvider
[src]
impl Clone for BasicAuthenticationProvider
[src]fn clone(&self) -> BasicAuthenticationProvider
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for BasicAuthenticationProvider
impl !RefUnwindSafe for BasicAuthenticationProvider
impl Send for BasicAuthenticationProvider
impl Send for BasicAuthenticationProvider
impl Sync for BasicAuthenticationProvider
impl Sync for BasicAuthenticationProvider
impl Unpin for BasicAuthenticationProvider
impl Unpin for BasicAuthenticationProvider
impl !UnwindSafe for BasicAuthenticationProvider
impl !UnwindSafe for BasicAuthenticationProvider
Blanket Implementations
impl<U> AuthenticationProviderClone for U where
U: 'static + AuthenticationProvider + Clone,
[src]
impl<U> AuthenticationProviderClone for U where
U: 'static + AuthenticationProvider + Clone,
[src]impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,