Struct ibc_relayer::supervisor::CollectedEvents
source · pub struct CollectedEvents {
pub height: Height,
pub chain_id: ChainId,
pub new_block: Option<IbcEvent>,
pub per_object: BTreeMap<Object, Vec<IbcEventWithHeight>>,
pub tracking_id: TrackingId,
}
Expand description
Describes the result of collect_events
.
Fields§
§height: Height
The height at which these events were emitted from the chain.
chain_id: ChainId
The chain from which the events were emitted.
new_block: Option<IbcEvent>
NewBlock
event
collected from the EventBatch
.
per_object: BTreeMap<Object, Vec<IbcEventWithHeight>>
§tracking_id: TrackingId
Unique identifier for tracking this event batch
Implementations§
source§impl CollectedEvents
impl CollectedEvents
pub fn new(height: Height, chain_id: ChainId, tracking_id: TrackingId) -> Self
sourcepub fn has_new_block(&self) -> bool
pub fn has_new_block(&self) -> bool
Whether the collected events include a
NewBlock
event.
Trait Implementations§
source§impl Clone for CollectedEvents
impl Clone for CollectedEvents
source§fn clone(&self) -> CollectedEvents
fn clone(&self) -> CollectedEvents
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 RefUnwindSafe for CollectedEvents
impl Send for CollectedEvents
impl Sync for CollectedEvents
impl Unpin for CollectedEvents
impl UnwindSafe for CollectedEvents
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request