Trait SidechainRpcApiClient

Source
pub trait SidechainRpcApiClient: ClientT {
    // Provided methods
    fn get_params<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<GetParamsOutput, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_status<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<GetStatusResponse, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the SidechainRpcApi RPC API.

Provided Methods§

Source

fn get_params<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<GetParamsOutput, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Gets the genesis UTXO of the Partner Chain

note: the legacy name get_params comes from the times when there were more parameters that defined a Partner Chain than a single genesis UTXO

Source

fn get_status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<GetStatusResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Gets information about current Partner Chain and Cardano slot and epoch number

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§

Source§

impl<TypeJsonRpseeInteral> SidechainRpcApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,