Skip to main content

Detector

Trait Detector 

Source
pub trait Detector: Send + Sync {
    // Required method
    fn sniff(&self, src: &Source) -> Option<Detection>;
}
Expand description

Proposes a format based on the source’s prefix.

Required Methods§

Source

fn sniff(&self, src: &Source) -> Option<Detection>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§