pub struct TwoFactorCallbacks<S: AuthSchema> { /* private fields */ }Expand description
Two-factor callbacks with validated input and the active typed runtime.
Implementations§
Source§impl<S: AuthSchema> TwoFactorCallbacks<S>
impl<S: AuthSchema> TwoFactorCallbacks<S>
Sourcepub fn send<F>(self, callback: F) -> Selfwhere
F: Fn(&UserView, &str, &EndpointContext<'_, S>) -> AuthResult<Option<BackgroundFuture>> + Send + Sync + 'static,
pub fn send<F>(self, callback: F) -> Selfwhere
F: Fn(&UserView, &str, &EndpointContext<'_, S>) -> AuthResult<Option<BackgroundFuture>> + Send + Sync + 'static,
Construct delivery work after persisting the OTP. Factory errors propagate immediately.
Retain the endpoint with to_owned when delivery needs its active runtime.
Trait Implementations§
Source§impl<S: AuthSchema> Default for TwoFactorCallbacks<S>
impl<S: AuthSchema> Default for TwoFactorCallbacks<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for TwoFactorCallbacks<S>
impl<S> !UnwindSafe for TwoFactorCallbacks<S>
impl<S> Freeze for TwoFactorCallbacks<S>
impl<S> Send for TwoFactorCallbacks<S>
impl<S> Sync for TwoFactorCallbacks<S>
impl<S> Unpin for TwoFactorCallbacks<S>
impl<S> UnsafeUnpin for TwoFactorCallbacks<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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