pub trait SafetyClassifier: Send + Sync {
// Required methods
fn scan<'a>(
&'a self,
text: &'a str,
) -> BoxFut<'a, Result<ScanVerdict, RuntimeError>>;
fn kind(&self) -> &'static str;
}Required Methods§
fn scan<'a>( &'a self, text: &'a str, ) -> BoxFut<'a, Result<ScanVerdict, RuntimeError>>
fn kind(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".