pub struct EitherConfirmationHandler<Left, Right> { /* private fields */ }Expand description
Use multiple confirmation handlers in parallel.
This is primarily usefully for allowing users to pick between providing a totp code or confirming the login in the mobile app.
Implementations§
Source§impl<Left, Right> EitherConfirmationHandler<Left, Right>
impl<Left, Right> EitherConfirmationHandler<Left, Right>
Trait Implementations§
Source§impl<Left, Right> AuthConfirmationHandler for EitherConfirmationHandler<Left, Right>
impl<Left, Right> AuthConfirmationHandler for EitherConfirmationHandler<Left, Right>
Source§async fn handle_confirmation(
self,
allowed_confirmations: &[ConfirmationMethod],
) -> Option<ConfirmationAction>
async fn handle_confirmation( self, allowed_confirmations: &[ConfirmationMethod], ) -> Option<ConfirmationAction>
Perform the confirmation action given a list of allowed confirmations for the login Read more
Source§fn or<Right: AuthConfirmationHandler>(
self,
other: Right,
) -> EitherConfirmationHandler<Self, Right>
fn or<Right: AuthConfirmationHandler>( self, other: Right, ) -> EitherConfirmationHandler<Self, Right>
Return a new confirmation handler that combines the current one with a new one. Read more
Auto Trait Implementations§
impl<Left, Right> Freeze for EitherConfirmationHandler<Left, Right>
impl<Left, Right> RefUnwindSafe for EitherConfirmationHandler<Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<Left, Right> Send for EitherConfirmationHandler<Left, Right>
impl<Left, Right> Sync for EitherConfirmationHandler<Left, Right>
impl<Left, Right> Unpin for EitherConfirmationHandler<Left, Right>
impl<Left, Right> UnwindSafe for EitherConfirmationHandler<Left, Right>where
Left: UnwindSafe,
Right: UnwindSafe,
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