Skip to main content

SafetyClassifier

Trait SafetyClassifier 

Source
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§

Source

fn scan<'a>( &'a self, text: &'a str, ) -> BoxFut<'a, Result<ScanVerdict, RuntimeError>>

Source

fn kind(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§