pub struct ChainProcessor {
pub processors: Vec<Box<dyn ChunkProcessor>>,
}Expand description
Processor that applies multiple processors in sequence
Fields§
§processors: Vec<Box<dyn ChunkProcessor>>Trait Implementations§
Source§impl ChunkProcessor for ChainProcessor
impl ChunkProcessor for ChainProcessor
Source§fn process_chunk(&self, chunk: &FileChunk) -> Result<FileChunk, PipelineError>
fn process_chunk(&self, chunk: &FileChunk) -> Result<FileChunk, PipelineError>
Processes a single chunk of data and returns a new processed chunk Read more
Source§fn modifies_data(&self) -> bool
fn modifies_data(&self) -> bool
Returns whether this processor modifies chunk data
Source§fn requires_sequential_processing(&self) -> bool
fn requires_sequential_processing(&self) -> bool
Returns whether this processor requires sequential processing
Auto Trait Implementations§
impl Freeze for ChainProcessor
impl !RefUnwindSafe for ChainProcessor
impl Send for ChainProcessor
impl Sync for ChainProcessor
impl Unpin for ChainProcessor
impl !UnwindSafe for ChainProcessor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more