pub struct StreamWorker<S, Q, R> { /* private fields */ }Expand description
Consumes the write queue, persists events, and pipes to ready read streams.
Implementations§
Source§impl<S, Q, R> StreamWorker<S, Q, R>
impl<S, Q, R> StreamWorker<S, Q, R>
pub fn new( store: S, _queue: Q, read_stream: R, handler: NStreamsHandler<S, R>, ) -> Self
pub async fn run<QC: QueueConsumer>(&self, consumer: QC) -> Result<()>
Auto Trait Implementations§
impl<S, Q, R> !RefUnwindSafe for StreamWorker<S, Q, R>
impl<S, Q, R> !UnwindSafe for StreamWorker<S, Q, R>
impl<S, Q, R> Freeze for StreamWorker<S, Q, R>
impl<S, Q, R> Send for StreamWorker<S, Q, R>
impl<S, Q, R> Sync for StreamWorker<S, Q, R>
impl<S, Q, R> Unpin for StreamWorker<S, Q, R>where
Q: Unpin,
impl<S, Q, R> UnsafeUnpin for StreamWorker<S, Q, R>
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