pub struct ProcessorPipeline { /* private fields */ }Expand description
Processor Pipeline - chains multiple processors
Implementations§
Source§impl ProcessorPipeline
impl ProcessorPipeline
Sourcepub fn add(self, processor: Arc<dyn OutputProcessor>) -> Self
pub fn add(self, processor: Arc<dyn OutputProcessor>) -> Self
Add a processor to the pipeline
Sourcepub async fn process(
&self,
event: StreamEvent,
ctx: &ProtectionContext,
) -> Result<ProcessedEvent>
pub async fn process( &self, event: StreamEvent, ctx: &ProtectionContext, ) -> Result<ProcessedEvent>
Run all processors in sequence
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessorPipeline
impl !RefUnwindSafe for ProcessorPipeline
impl Send for ProcessorPipeline
impl Sync for ProcessorPipeline
impl Unpin for ProcessorPipeline
impl UnsafeUnpin for ProcessorPipeline
impl !UnwindSafe for ProcessorPipeline
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