pub trait AuthResolverFn: Send + Sync {
// Required methods
fn exec_fn(&self, model_iden: ModelIden) -> Result<Option<AuthData>>;
fn clone_box(&self) -> Box<dyn AuthResolverFn>;
}Expand description
The AuthResolverFn trait object.
Required Methods§
Sourcefn exec_fn(&self, model_iden: ModelIden) -> Result<Option<AuthData>>
fn exec_fn(&self, model_iden: ModelIden) -> Result<Option<AuthData>>
Execute the AuthResolverFn to get the AuthData.
Sourcefn clone_box(&self) -> Box<dyn AuthResolverFn>
fn clone_box(&self) -> Box<dyn AuthResolverFn>
Clone the trait object.
Trait Implementations§
Source§impl Clone for Box<dyn AuthResolverFn>
impl Clone for Box<dyn AuthResolverFn>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".