pub trait SsoProviderMutationGuard<S: AuthSchema>: Send + Sync {
// Required method
fn guard<'life0, 'life1, 'async_trait>(
&'life0 self,
mutation: SsoProviderMutation,
database: &'life1 dyn AuthTransaction<S>,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn guard<'life0, 'life1, 'async_trait>(
&'life0 self,
mutation: SsoProviderMutation,
database: &'life1 dyn AuthTransaction<S>,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn guard<'life0, 'life1, 'async_trait>(
&'life0 self,
mutation: SsoProviderMutation,
database: &'life1 dyn AuthTransaction<S>,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Runs inside the provider mutation transaction. An error rejects and rolls back it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".