pub struct EventBatch {
pub events: Vec<DecodedEvent>,
pub cursor: StreamCursor,
pub has_more: bool,
}Expand description
A batch of events returned to a consumer.
Contains the events, a cursor pointing to the position after this batch, and a flag indicating whether more events are available.
Fields§
§events: Vec<DecodedEvent>The events in this batch (ordered by block_number, then log_index).
cursor: StreamCursorCursor pointing to the position AFTER this batch.
Use this cursor in the next next_batch call to continue.
has_more: booltrue if there are more events available beyond this batch.
Trait Implementations§
Source§impl Clone for EventBatch
impl Clone for EventBatch
Source§fn clone(&self) -> EventBatch
fn clone(&self) -> EventBatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventBatch
impl RefUnwindSafe for EventBatch
impl Send for EventBatch
impl Sync for EventBatch
impl Unpin for EventBatch
impl UnsafeUnpin for EventBatch
impl UnwindSafe for EventBatch
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