openzeppelin_monitor::services::blockchain

Trait BlockFilterFactory

Source
pub trait BlockFilterFactory<T> {
    type Filter: BlockFilter<Client = T> + Send;

    // Required method
    fn filter() -> Self::Filter;
}
Expand description

Defines the factory interface for creating block filters

This trait must be implemented by all blockchain-specific clients to provide a way to create block filters.

Required Associated Types§

Source

type Filter: BlockFilter<Client = T> + Send

Required Methods§

Source

fn filter() -> Self::Filter

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§