Skip to main content

NativeDecoderFactory

Trait NativeDecoderFactory 

Source
pub trait NativeDecoderFactory: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn detector_ids(&self) -> &[i64];
    fn observable_ids(&self) -> &[i64];
    fn batch_formats(&self) -> &[DetectorBatchFormat];
    fn create_worker(&self) -> NpResult<Box<dyn NativeDecoderWorker>>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn detector_ids(&self) -> &[i64]

Ordered detector input layout. Detector ids must be unique.

Source

fn observable_ids(&self) -> &[i64]

Source

fn batch_formats(&self) -> &[DetectorBatchFormat]

Stable, non-empty, duplicate-free format preference list.

Source

fn create_worker(&self) -> NpResult<Box<dyn NativeDecoderWorker>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§