pub struct TransformPipeline { /* private fields */ }Expand description
Chain multiple TransformHooks into a sequential pipeline.
Each hook receives the output of the previous one. If any hook returns an error, the pipeline short-circuits.
Implementations§
Source§impl TransformPipeline
impl TransformPipeline
pub fn new(hooks: Vec<Arc<dyn TransformHook>>) -> Self
Trait Implementations§
Source§impl TransformHook for TransformPipeline
impl TransformHook for TransformPipeline
fn transform<'life0, 'async_trait>(
&'life0 self,
envelopes: Vec<EventEnvelope>,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventEnvelope>, OversyncError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for TransformPipeline
impl !RefUnwindSafe for TransformPipeline
impl Send for TransformPipeline
impl Sync for TransformPipeline
impl Unpin for TransformPipeline
impl UnsafeUnpin for TransformPipeline
impl !UnwindSafe for TransformPipeline
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