Struct niftygate_bindings::openzeppelin::contracts_upgradeable::proxy::utils::uups_upgradeable::event_builders::UpgradedBuilder
source · [−]pub struct UpgradedBuilder(pub DynEventBuilder<Upgraded>);
Expand description
A builder for creating a filtered stream of Upgraded
events.
Tuple Fields
0: DynEventBuilder<Upgraded>
The inner event builder.
Implementations
sourceimpl UpgradedBuilder
impl UpgradedBuilder
sourcepub fn from_block(self, block: BlockNumber) -> Self
pub fn from_block(self, block: BlockNumber) -> Self
Sets the starting block from which to stream logs for.
If left unset defaults to the latest block.
sourcepub fn to_block(self, block: BlockNumber) -> Self
pub fn to_block(self, block: BlockNumber) -> Self
Sets the last block from which to stream logs for.
If left unset defaults to the streaming until the end of days.
sourcepub fn limit(self, value: usize) -> Self
pub fn limit(self, value: usize) -> Self
Limits the number of events that can be retrieved by this filter.
Note that this parameter is non-standard.
sourcepub fn poll_interval(self, value: Duration) -> Self
pub fn poll_interval(self, value: Duration) -> Self
Sets the polling interval. This is used as the interval between
consecutive eth_getFilterChanges
calls to get filter updates.
sourcepub fn implementation(self, topic: Topic<Address>) -> Self
pub fn implementation(self, topic: Topic<Address>) -> Self
Adds a filter for the implementation event parameter.
sourcepub async fn query(self) -> Result<Vec<Event<Upgraded>>, EventError>
pub async fn query(self) -> Result<Vec<Event<Upgraded>>, EventError>
Returns a future that resolves with a collection of all existing logs matching the builder parameters.
sourcepub fn stream(
self
) -> impl Stream<Item = Result<StreamEvent<Upgraded>, EventError>>
pub fn stream(
self
) -> impl Stream<Item = Result<StreamEvent<Upgraded>, EventError>>
Creates an event stream from the current event builder.
Auto Trait Implementations
impl !RefUnwindSafe for UpgradedBuilder
impl Send for UpgradedBuilder
impl Sync for UpgradedBuilder
impl Unpin for UpgradedBuilder
impl !UnwindSafe for UpgradedBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more