pub struct FormatDispatchRule;
Expand description
Format-specific dispatch rule
Selects processors based on file format and format-specific requirements. This rule handles cases where processor selection depends on the file format rather than manufacturer.
Trait Implementations§
Source§impl DispatchRule for FormatDispatchRule
impl DispatchRule for FormatDispatchRule
Source§fn applies_to(&self, _context: &ProcessorContext) -> bool
fn applies_to(&self, _context: &ProcessorContext) -> bool
Check if this rule applies to the given context Read more
Source§fn select_processor(
&self,
candidates: &[(ProcessorKey, Arc<dyn BinaryDataProcessor>, ProcessorCapability)],
context: &ProcessorContext,
) -> Option<(ProcessorKey, Arc<dyn BinaryDataProcessor>)>
fn select_processor( &self, candidates: &[(ProcessorKey, Arc<dyn BinaryDataProcessor>, ProcessorCapability)], context: &ProcessorContext, ) -> Option<(ProcessorKey, Arc<dyn BinaryDataProcessor>)>
Select a processor from the available candidates Read more
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get a human-readable description of this rule
Auto Trait Implementations§
impl Freeze for FormatDispatchRule
impl RefUnwindSafe for FormatDispatchRule
impl Send for FormatDispatchRule
impl Sync for FormatDispatchRule
impl Unpin for FormatDispatchRule
impl UnwindSafe for FormatDispatchRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more