pub trait AuthBackend: Send + Sync {
// Required method
fn verify<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AuthResult, AuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn verify<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AuthResult, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Implementations on Foreign Types§
Source§impl<A: AuthBackend + ?Sized> AuthBackend for Arc<A>
Blanket implementation for Arc where A: AuthBackend.
This allows passing Arc directly to functions expecting impl AuthBackend.
impl<A: AuthBackend + ?Sized> AuthBackend for Arc<A>
Blanket implementation for Arc where A: AuthBackend.
This allows passing Arc