[][src]Trait cxmr_api::PublicClient

pub trait PublicClient: Send + Sync {
    type Error;
    fn exchange(&self) -> &'static Exchange;
fn exchange_info<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<ExchangeInfo, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Exchange API public client struct.

Associated Types

type Error

Loading content...

Required methods

fn exchange(&self) -> &'static Exchange

Returns static exchange identifier.

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

Requests exchange information.

Loading content...

Implementors

Loading content...