pub trait Indexer:
Send
+ Sync
+ 'static {
type ChainTipChangeStream: Stream<Item = Result<BlockHashAndHeight, Status>> + Send + 'static;
type MempoolChangeStream: Stream<Item = Result<MempoolChangeMessage, Status>> + Send + 'static;
// Required methods
fn chain_tip_change<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ChainTipChangeStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn mempool_change<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::MempoolChangeStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with IndexerServer.
Required Associated Types§
Sourcetype ChainTipChangeStream: Stream<Item = Result<BlockHashAndHeight, Status>> + Send + 'static
type ChainTipChangeStream: Stream<Item = Result<BlockHashAndHeight, Status>> + Send + 'static
Server streaming response type for the ChainTipChange method.
Sourcetype MempoolChangeStream: Stream<Item = Result<MempoolChangeMessage, Status>> + Send + 'static
type MempoolChangeStream: Stream<Item = Result<MempoolChangeMessage, Status>> + Send + 'static
Server streaming response type for the MempoolChange method.