pub trait RemoteExEx:
Send
+ Sync
+ 'static {
type SubscribeExExStream: Stream<Item = Result<ExExNotification, Status>> + Send + 'static;
type SubscribeHeaderStream: Stream<Item = Result<SealedHeader, Status>> + Send + 'static;
type SubscribeBlockStream: Stream<Item = Result<Block, Status>> + Send + 'static;
type SubscribeReceiptsStream: Stream<Item = Result<ReceiptsNotification, Status>> + Send + 'static;
type SubscribeStateUpdateStream: Stream<Item = Result<StateUpdateNotification, Status>> + Send + 'static;
type SubscribeMempoolTxStream: Stream<Item = Result<Transaction, Status>> + Send + 'static;
// Required methods
fn subscribe_ex_ex<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeExExStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_header<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeHeaderStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_block<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeBlockStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_receipts<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeReceiptsStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_state_update<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeStateUpdateStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_mempool_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeMempoolTxStream>, 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 RemoteExExServer.
Required Associated Types§
Sourcetype SubscribeExExStream: Stream<Item = Result<ExExNotification, Status>> + Send + 'static
type SubscribeExExStream: Stream<Item = Result<ExExNotification, Status>> + Send + 'static
Server streaming response type for the SubscribeExEx method.
Sourcetype SubscribeHeaderStream: Stream<Item = Result<SealedHeader, Status>> + Send + 'static
type SubscribeHeaderStream: Stream<Item = Result<SealedHeader, Status>> + Send + 'static
Server streaming response type for the SubscribeHeader method.
Sourcetype SubscribeBlockStream: Stream<Item = Result<Block, Status>> + Send + 'static
type SubscribeBlockStream: Stream<Item = Result<Block, Status>> + Send + 'static
Server streaming response type for the SubscribeBlock method.
Sourcetype SubscribeReceiptsStream: Stream<Item = Result<ReceiptsNotification, Status>> + Send + 'static
type SubscribeReceiptsStream: Stream<Item = Result<ReceiptsNotification, Status>> + Send + 'static
Server streaming response type for the SubscribeReceipts method.
Sourcetype SubscribeStateUpdateStream: Stream<Item = Result<StateUpdateNotification, Status>> + Send + 'static
type SubscribeStateUpdateStream: Stream<Item = Result<StateUpdateNotification, Status>> + Send + 'static
Server streaming response type for the SubscribeStateUpdate method.
Sourcetype SubscribeMempoolTxStream: Stream<Item = Result<Transaction, Status>> + Send + 'static
type SubscribeMempoolTxStream: Stream<Item = Result<Transaction, Status>> + Send + 'static
Server streaming response type for the SubscribeMempoolTx method.