pub struct MagicLinkCallbacks<S: AuthSchema> { /* private fields */ }Expand description
Magic-link delivery with the parsed input and typed authentication runtime.
Implementations§
Source§impl<S: AuthSchema> MagicLinkCallbacks<S>
impl<S: AuthSchema> MagicLinkCallbacks<S>
Sourcepub fn new<F>(sender: F) -> Selfwhere
F: for<'a> Fn(&'a MagicLinkMessage, &'a EndpointContext<'_, S>) -> MagicLinkCallbackFuture<'a> + Send + Sync + 'static,
pub fn new<F>(sender: F) -> Selfwhere
F: for<'a> Fn(&'a MagicLinkMessage, &'a EndpointContext<'_, S>) -> MagicLinkCallbackFuture<'a> + Send + Sync + 'static,
Deliver a link after the verification proof has been stored.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for MagicLinkCallbacks<S>
impl<S> !UnwindSafe for MagicLinkCallbacks<S>
impl<S> Freeze for MagicLinkCallbacks<S>
impl<S> Send for MagicLinkCallbacks<S>
impl<S> Sync for MagicLinkCallbacks<S>
impl<S> Unpin for MagicLinkCallbacks<S>
impl<S> UnsafeUnpin for MagicLinkCallbacks<S>where
Arc<dyn for<'a> Fn(&'a MagicLinkMessage, &'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'a>> + Send + Sync>: UnsafeUnpin,
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