pub struct AnonymousCallbacks<S: AuthSchema> { /* private fields */ }Expand description
Anonymous identity callbacks with the complete endpoint context.
Implementations§
Source§impl<S: AuthSchema> AnonymousCallbacks<S>
impl<S: AuthSchema> AnonymousCallbacks<S>
Sourcepub fn generate_name<F>(self, callback: F) -> Selfwhere
F: for<'a> Fn(&'a EndpointContext<'_, S>) -> AnonymousCallbackFuture<'a, String> + Send + Sync + 'static,
pub fn generate_name<F>(self, callback: F) -> Selfwhere
F: for<'a> Fn(&'a EndpointContext<'_, S>) -> AnonymousCallbackFuture<'a, String> + Send + Sync + 'static,
Generate a display name before creating the anonymous user.
Sourcepub fn on_link_account<F>(self, callback: F) -> Selfwhere
F: for<'a> Fn(&'a AnonymousLink, &'a EndpointContext<'_, S>) -> AnonymousCallbackFuture<'a, ()> + Send + Sync + 'static,
pub fn on_link_account<F>(self, callback: F) -> Selfwhere
F: for<'a> Fn(&'a AnonymousLink, &'a EndpointContext<'_, S>) -> AnonymousCallbackFuture<'a, ()> + Send + Sync + 'static,
Transfer application data before deleting the old anonymous user.
Trait Implementations§
Source§impl<S: AuthSchema> Default for AnonymousCallbacks<S>
impl<S: AuthSchema> Default for AnonymousCallbacks<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for AnonymousCallbacks<S>
impl<S> !UnwindSafe for AnonymousCallbacks<S>
impl<S> Freeze for AnonymousCallbacks<S>where
Option<Arc<dyn for<'a> Fn(&'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'a>> + Send + Sync>>: Freeze,
Option<Arc<dyn for<'a> Fn(&'a AnonymousLink, &'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'a>> + Send + Sync>>: Freeze,
impl<S> Send for AnonymousCallbacks<S>where
Option<Arc<dyn for<'a> Fn(&'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'a>> + Send + Sync>>: Send,
Option<Arc<dyn for<'a> Fn(&'a AnonymousLink, &'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'a>> + Send + Sync>>: Send,
impl<S> Sync for AnonymousCallbacks<S>where
Option<Arc<dyn for<'a> Fn(&'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'a>> + Send + Sync>>: Sync,
Option<Arc<dyn for<'a> Fn(&'a AnonymousLink, &'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'a>> + Send + Sync>>: Sync,
impl<S> Unpin for AnonymousCallbacks<S>where
Option<Arc<dyn for<'a> Fn(&'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'a>> + Send + Sync>>: Unpin,
Option<Arc<dyn for<'a> Fn(&'a AnonymousLink, &'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'a>> + Send + Sync>>: Unpin,
impl<S> UnsafeUnpin for AnonymousCallbacks<S>where
Option<Arc<dyn for<'a> Fn(&'a EndpointContext<'_, S>) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'a>> + Send + Sync>>: UnsafeUnpin,
Option<Arc<dyn for<'a> Fn(&'a AnonymousLink, &'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