Type Alias ethcontract::contract::StreamEvent

source ·
pub type StreamEvent<T> = Event<EventStatus<T>>;
Expand description

A contract event from an event stream.

This is similar to Events except the event may either be added (in case a new block is mined) or removed (in case of re-orgs when blocks are removed).

Aliased Type§

struct StreamEvent<T> {
    pub data: EventStatus<T>,
    pub meta: Option<EventMetadata>,
}

Fields§

§data: EventStatus<T>

The decoded log data.

§meta: Option<EventMetadata>

The additional metadata for the event. Note that this is not always available if these logs are pending. This can happen if the to_block option was set to BlockNumber::Pending.