Skip to main content

EdgeProcessor

Trait EdgeProcessor 

Source
pub trait EdgeProcessor:
    Debug
    + Send
    + Sync {
    type Input;
    type Output;

    // Required methods
    fn process(&self, input: Self::Input) -> Result<Self::Output, OCRError>;
    fn name(&self) -> &str;
}
Expand description

Trait for processors that transform data between task nodes.

Required Associated Types§

Source

type Input

Input type for this processor

Source

type Output

Output type for this processor

Required Methods§

Source

fn process(&self, input: Self::Input) -> Result<Self::Output, OCRError>

Process the input data and produce output

Source

fn name(&self) -> &str

Get the processor name for debugging

Implementors§