pub struct EventStreamProcessor<P: StreamProcessor> { /* private fields */ }Expand description
Event stream processor
Implementations§
Source§impl<P: StreamProcessor + 'static> EventStreamProcessor<P>
impl<P: StreamProcessor + 'static> EventStreamProcessor<P>
Sourcepub fn new(processor: P, config: StreamingConfig) -> Self
pub fn new(processor: P, config: StreamingConfig) -> Self
Create a new event stream processor
Sourcepub async fn start_processing(self) -> Result<(), StreamError>
pub async fn start_processing(self) -> Result<(), StreamError>
Start processing events
Sourcepub fn send_event(&self, event: StreamingEvent) -> Result<(), StreamError>
pub fn send_event(&self, event: StreamingEvent) -> Result<(), StreamError>
Send event to processor
Sourcepub fn event_sender(&self) -> EventSender
pub fn event_sender(&self) -> EventSender
Create event sender handle
Sourcepub async fn health_check(&self) -> Result<(), StreamError>
pub async fn health_check(&self) -> Result<(), StreamError>
Get processor health
Auto Trait Implementations§
impl<P> Freeze for EventStreamProcessor<P>
impl<P> RefUnwindSafe for EventStreamProcessor<P>where
P: RefUnwindSafe,
impl<P> Send for EventStreamProcessor<P>
impl<P> Sync for EventStreamProcessor<P>
impl<P> Unpin for EventStreamProcessor<P>
impl<P> UnwindSafe for EventStreamProcessor<P>where
P: RefUnwindSafe,
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