Skip to main content

IntoAuthResolverFn

Trait IntoAuthResolverFn 

Source
pub trait IntoAuthResolverFn {
    // Required method
    fn into_resolver_fn(self) -> Arc<Box<dyn AuthResolverFn>> ⓘ;
}
Expand description

Custom and convenient trait used in the AuthResolver::from_resolver_fn argument.

Required Methods§

Source

fn into_resolver_fn(self) -> Arc<Box<dyn AuthResolverFn>> ⓘ

Convert the argument into an AuthResolverFn trait object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoAuthResolverFn for Arc<Box<dyn AuthResolverFn>>

Implementors§

Source§

impl<F> IntoAuthResolverFn for F
where F: FnOnce(ModelIden) -> Result<Option<AuthData>> + Send + Sync + Clone + 'static,