pub trait PhronNodeApiClient<B, BE>: ClientT
where B: Send + Sync + 'static, BE: Send + Sync + 'static,
{ // Provided methods fn emergency_finalize<'life0, 'async_trait>( &'life0 self, justification: Bytes, hash: BlockHash, number: BlockNumber ) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn block_author<'life0, 'async_trait>( &'life0 self, hash: BlockHash ) -> Pin<Box<dyn Future<Output = RpcResult<Option<AccountId>>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn ready<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn validator_network_info<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<HashMap<AccountId, ValidatorAddressingInfo>>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the PhronNodeApi RPC API.

Provided Methods§

source

fn emergency_finalize<'life0, 'async_trait>( &'life0 self, justification: Bytes, hash: BlockHash, number: BlockNumber ) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Finalize the block with given hash and number using attached signature. Returns the empty string or an error.

source

fn block_author<'life0, 'async_trait>( &'life0 self, hash: BlockHash ) -> Pin<Box<dyn Future<Output = RpcResult<Option<AccountId>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get the author of the block with given hash.

source

fn ready<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn validator_network_info<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = RpcResult<HashMap<AccountId, ValidatorAddressingInfo>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TypeJsonRpseeInteral, B, BE> PhronNodeApiClient<B, BE> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, B: Send + Sync + 'static, BE: Send + Sync + 'static,