pub struct EventBatchFeed<F, I = MarketEvent> { /* private fields */ }Expand description
Groups a fallible event cursor into complete timestamp batches.
Implementations§
Source§impl<F, I> EventBatchFeed<F, I>
impl<F, I> EventBatchFeed<F, I>
pub fn new<E>(next_event: F, roles: SeriesRoles, series_rank: u32) -> Self
Source§impl<F, I, E> EventBatchFeed<F, I>
impl<F, I, E> EventBatchFeed<F, I>
Sourcepub fn next_timestamp_batch(
&mut self,
) -> Result<Option<TimestampBatch>, EventBatchFeedError<E>>
pub fn next_timestamp_batch( &mut self, ) -> Result<Option<TimestampBatch>, EventBatchFeedError<E>>
Return the next complete timestamp batch.
Trait Implementations§
Source§impl<F, I, E> FallibleBatchFeed for EventBatchFeed<F, I>
impl<F, I, E> FallibleBatchFeed for EventBatchFeed<F, I>
type Error = EventBatchFeedError<E>
Source§fn next_batch(&mut self) -> Result<Option<TimestampBatch>, Self::Error>
fn next_batch(&mut self) -> Result<Option<TimestampBatch>, Self::Error>
Return every event at the next timestamp, or
None at end of input.Auto Trait Implementations§
impl<F, I> Freeze for EventBatchFeed<F, I>where
F: Freeze,
impl<F, I> RefUnwindSafe for EventBatchFeed<F, I>where
F: RefUnwindSafe,
impl<F, I> Send for EventBatchFeed<F, I>where
F: Send,
impl<F, I> Sync for EventBatchFeed<F, I>where
F: Sync,
impl<F, I> Unpin for EventBatchFeed<F, I>where
F: Unpin,
impl<F, I> UnsafeUnpin for EventBatchFeed<F, I>where
F: UnsafeUnpin,
impl<F, I> UnwindSafe for EventBatchFeed<F, I>where
F: UnwindSafe,
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