pub struct RuleBasedEventMapper { /* private fields */ }Implementations§
Source§impl RuleBasedEventMapper
impl RuleBasedEventMapper
pub fn new( rules: &[EventMapRule], ) -> Result<RuleBasedEventMapper, PipelineError>
Trait Implementations§
Source§impl Mapper for RuleBasedEventMapper
impl Mapper for RuleBasedEventMapper
Source§fn map<'life0, 'async_trait>(
&'life0 self,
input: Pin<Box<dyn Stream<Item = Result<Value, Error>> + Send>>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<StreamingEvent, Error>> + Send>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RuleBasedEventMapper: 'async_trait,
fn map<'life0, 'async_trait>(
&'life0 self,
input: Pin<Box<dyn Stream<Item = Result<Value, Error>> + Send>>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<StreamingEvent, Error>> + Send>>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RuleBasedEventMapper: 'async_trait,
A mapper takes a stream of JSON values and returns a stream of unified events
Auto Trait Implementations§
impl Freeze for RuleBasedEventMapper
impl RefUnwindSafe for RuleBasedEventMapper
impl Send for RuleBasedEventMapper
impl Sync for RuleBasedEventMapper
impl Unpin for RuleBasedEventMapper
impl UnsafeUnpin for RuleBasedEventMapper
impl UnwindSafe for RuleBasedEventMapper
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