Skip to main content

BlockRangeHandler

Trait BlockRangeHandler 

Source
pub trait BlockRangeHandler {
    // Required method
    fn handle<S: Stream<Item = BlockScannerResult> + Unpin + Send>(
        self,
        stream: S,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

Handles a stream of scanned block ranges.

Required Methods§

Source

fn handle<S: Stream<Item = BlockScannerResult> + Unpin + Send>( self, stream: S, ) -> impl Future<Output = ()> + Send

Consumes a stream of scanned block-range results.

Implementations typically forward data and notifications to registered listeners.

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§