pub struct BatchEventProcessor<T> { /* private fields */ }Expand description
Batch Event Processor.
Implementations§
Source§impl<T> BatchEventProcessor<T>
impl<T> BatchEventProcessor<T>
Sourcepub fn new(
ring_buffer: Arc<RingBuffer<T>>,
barrier: Arc<ProcessingSequenceBarrier>,
handler: Arc<dyn EventHandler<T>>,
) -> Self
pub fn new( ring_buffer: Arc<RingBuffer<T>>, barrier: Arc<ProcessingSequenceBarrier>, handler: Arc<dyn EventHandler<T>>, ) -> Self
Creates a new batch event processor.
Sourcepub fn get_sequence(&self) -> Arc<Sequence>
pub fn get_sequence(&self) -> Arc<Sequence>
Gets the sequence of the processor.
Auto Trait Implementations§
impl<T> Freeze for BatchEventProcessor<T>
impl<T> !RefUnwindSafe for BatchEventProcessor<T>
impl<T> Send for BatchEventProcessor<T>
impl<T> Sync for BatchEventProcessor<T>
impl<T> Unpin for BatchEventProcessor<T>
impl<T> UnsafeUnpin for BatchEventProcessor<T>
impl<T> !UnwindSafe for BatchEventProcessor<T>
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