pub struct EmailVerificationCallbacks<S: AuthSchema> { /* private fields */ }Expand description
Verification delivery with the complete endpoint and active transaction.
Implementations§
Source§impl<S: AuthSchema> EmailVerificationCallbacks<S>
impl<S: AuthSchema> EmailVerificationCallbacks<S>
Sourcepub fn send(
callback: impl Fn(&VerificationEmail, &EndpointContext<'_, S>) -> AuthResult<Option<BackgroundFuture>> + Send + Sync + 'static,
) -> Self
pub fn send( callback: impl Fn(&VerificationEmail, &EndpointContext<'_, S>) -> AuthResult<Option<BackgroundFuture>> + Send + Sync + 'static, ) -> Self
Invoke delivery before background scheduling. Return None for synchronous completion.
Use EndpointContext::to_owned when the returned future needs its transaction.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for EmailVerificationCallbacks<S>
impl<S> !UnwindSafe for EmailVerificationCallbacks<S>
impl<S> Freeze for EmailVerificationCallbacks<S>
impl<S> Send for EmailVerificationCallbacks<S>
impl<S> Sync for EmailVerificationCallbacks<S>
impl<S> Unpin for EmailVerificationCallbacks<S>
impl<S> UnsafeUnpin for EmailVerificationCallbacks<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