Struct ethcontract::contract::AllEventsBuilder[][src]

pub struct AllEventsBuilder<T: Transport, E: ParseLog> {
    pub filter: LogFilterBuilder<T>,
    pub deployment_information: Option<DeploymentInformation>,
    // some fields omitted
}
Expand description

A builder for creating a filtered stream for any contract event.

Fields

filter: LogFilterBuilder<T>

The underlying log filter for these contract events.

deployment_information: Option<DeploymentInformation>

The contract deployment transaction hash. Specifying this can increase the performance of the paginated events query.

Note that if the contract was created from an existing deployment that includes the transaction hash, then this property will be automatically set.

Implementations

Creates a new all events builder from a web3 provider and and address.

Sets the starting block from which to stream logs for.

If left unset defaults to the latest block.

Sets the last block from which to stream logs for.

If left unset defaults to the streaming until the end of days.

Adds a filter for the first indexed topic.

For regular events, this corresponds to the event signature. For anonymous events, this is the first indexed property.

Adds a filter for the second indexed topic.

Adds a filter for the third indexed topic.

Adds a filter for the third indexed topic.

Limit the number of events that can be retrieved by this filter.

Note that this parameter is non-standard.

The page size in blocks to use when doing a paginated query on past events.

The polling interval. This is used as the interval between consecutive eth_getLogs calls to get log updates.

Returns a future that resolves into a collection of events matching the event builder’s parameters.

Returns a future that resolves into a collection of events matching the event builder’s parameters. This method is similar to query with the notable difference that the logs are fetched in pages by querying smaller block ranges specified by block_page_size instead of using a single query.

Note that if the block range is inconsistent (for example from block is after the to block, or querying until the earliest block), then the query will be forwarded to the node as is.

Creates an event stream from the current event builder.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.