pub struct EventBatch { /* private fields */ }Implementations§
Source§impl EventBatch
 
impl EventBatch
Sourcepub fn new(block_events: Vec<BlockEvents>) -> Self
 
pub fn new(block_events: Vec<BlockEvents>) -> Self
Create a new EventBatch.
Sourcepub fn empty(&self) -> bool
 
pub fn empty(&self) -> bool
Check if this batch has no blocks in it.
Most commonly, this is the result when [start_later] is called with a height
past that inside the batch.
Sourcepub fn start_later(&mut self, new_start: u64)
 
pub fn start_later(&mut self, new_start: u64)
Modify this batch to start at a greater height.
This will have no effect if the new start height is before the current start height.
pub fn events_by_block(&self) -> impl Iterator<Item = &BlockEvents>
pub fn events(&self) -> impl Iterator<Item = ContextualizedEvent<'_>>
Trait Implementations§
Source§impl Clone for EventBatch
 
impl Clone for EventBatch
Source§fn clone(&self) -> EventBatch
 
fn clone(&self) -> EventBatch
Returns a copy 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 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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more