pub trait AutoClassifier: Send + Sync {
// Required method
fn vet<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 VetRequest,
) -> Pin<Box<dyn Future<Output = VetVerdict> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Vets a borderline action against the user’s intent. Implementors must be
cheap to clone-share (Arc) and safe to call concurrently.
Required Methods§
fn vet<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 VetRequest,
) -> Pin<Box<dyn Future<Output = VetVerdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".