pub struct AuthenticationRegistry<P> { /* private fields */ }Expand description
Deterministic strategy router without runtime output downcasting.
Implementations§
Source§impl<P> AuthenticationRegistry<P>where
P: Send,
impl<P> AuthenticationRegistry<P>where
P: Send,
Sourcepub fn register<S>(&mut self, strategy: S) -> SoapResult<()>where
S: AuthenticationStrategy<P> + 'static,
pub fn register<S>(&mut self, strategy: S) -> SoapResult<()>where
S: AuthenticationStrategy<P> + 'static,
Registers one uniquely named strategy.
Trait Implementations§
Source§impl<P> Authenticator<Credential, P> for AuthenticationRegistry<P>where
P: Send,
impl<P> Authenticator<Credential, P> for AuthenticationRegistry<P>where
P: Send,
Source§fn authenticate(
&self,
credential: Credential,
) -> BoxFuture<'_, SoapResult<Authentication<P>>>
fn authenticate( &self, credential: Credential, ) -> BoxFuture<'_, SoapResult<Authentication<P>>>
Authenticates a presented credential.
Auto Trait Implementations§
impl<P> !RefUnwindSafe for AuthenticationRegistry<P>
impl<P> !UnwindSafe for AuthenticationRegistry<P>
impl<P> Freeze for AuthenticationRegistry<P>
impl<P> Send for AuthenticationRegistry<P>
impl<P> Sync for AuthenticationRegistry<P>
impl<P> Unpin for AuthenticationRegistry<P>
impl<P> UnsafeUnpin for AuthenticationRegistry<P>
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