pub struct StreamProcessor { /* private fields */ }
Expand description
Stream processor for handling PJS frames
Implementations§
Source§impl StreamProcessor
impl StreamProcessor
Sourcepub fn new(config: StreamConfig) -> Self
pub fn new(config: StreamConfig) -> Self
Create new stream processor
Sourcepub fn process_frame(
&mut self,
frame: StreamFrame,
) -> DomainResult<ProcessResult>
pub fn process_frame( &mut self, frame: StreamFrame, ) -> DomainResult<ProcessResult>
Process a stream frame
Sourcepub fn flush(&mut self) -> Vec<StreamFrame>
pub fn flush(&mut self) -> Vec<StreamFrame>
Flush remaining frames
Sourcepub fn stats(&self) -> StreamStats
pub fn stats(&self) -> StreamStats
Get processing statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamProcessor
impl RefUnwindSafe for StreamProcessor
impl Send for StreamProcessor
impl Sync for StreamProcessor
impl Unpin for StreamProcessor
impl UnwindSafe for StreamProcessor
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