pub struct PasswordManagementCallbacks<S: AuthSchema> { /* private fields */ }Expand description
Password reset delivery with the complete endpoint context.
Implementations§
Source§impl<S: AuthSchema> PasswordManagementCallbacks<S>
impl<S: AuthSchema> PasswordManagementCallbacks<S>
Sourcepub fn send_reset_password(
callback: impl Fn(&PasswordResetEmail, &EndpointContext<'_, S>) -> AuthResult<Option<BackgroundFuture>> + Send + Sync + 'static,
) -> Self
pub fn send_reset_password( callback: impl Fn(&PasswordResetEmail, &EndpointContext<'_, S>) -> AuthResult<Option<BackgroundFuture>> + Send + Sync + 'static, ) -> Self
Start delivery before scheduling. Return None for synchronous completion.
Use EndpointContext::to_owned when asynchronous delivery needs its context.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for PasswordManagementCallbacks<S>
impl<S> !UnwindSafe for PasswordManagementCallbacks<S>
impl<S> Freeze for PasswordManagementCallbacks<S>
impl<S> Send for PasswordManagementCallbacks<S>
impl<S> Sync for PasswordManagementCallbacks<S>
impl<S> Unpin for PasswordManagementCallbacks<S>
impl<S> UnsafeUnpin for PasswordManagementCallbacks<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