pub trait ClassifierDispatch:
Send
+ Sync
+ 'static {
// Required method
fn classify<'a>(
&'a self,
context: CallContext,
request: ClassifyRequest,
) -> Pin<Box<dyn Future<Output = Result<ClassifyOutcome, ClassifierError>> + Send + 'a>>;
}Required Methods§
fn classify<'a>( &'a self, context: CallContext, request: ClassifyRequest, ) -> Pin<Box<dyn Future<Output = Result<ClassifyOutcome, ClassifierError>> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".