pub trait Detector: Send + 'static {
// Required method
fn evaluate(
&mut self,
view: &FrameView<'_>,
) -> Result<DetectorOutput, DetectorError>;
// Provided method
fn is_heavy(&self) -> bool { ... }
}Expand description
Evaluates one region of one frame. Built-in detectors, gates, and user-defined detectors all implement this same trait.
Required Methods§
fn evaluate( &mut self, view: &FrameView<'_>, ) -> Result<DetectorOutput, DetectorError>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".