pub trait Indexer:
Clone
+ Send
+ Sync
+ 'static {
type Error: Error + Send + Sync + 'static;
// Required methods
fn submit_seed(
&self,
seed: Seed,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
fn listen_mempool(
&self,
) -> impl Future<Output = Result<impl Stream<Item = Result<Pending, Self::Error>> + Send, Self::Error>> + Send;
fn submit_summary(
&self,
summary: Summary,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Expand description
Trait for interacting with an indexer.
Required Associated Types§
Required Methods§
Sourcefn submit_seed(
&self,
seed: Seed,
) -> impl Future<Output = Result<(), Self::Error>> + Send
fn submit_seed( &self, seed: Seed, ) -> impl Future<Output = Result<(), Self::Error>> + Send
Upload a seed to the indexer.
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.