Trait PublicClient

Source
pub trait PublicClient: Send + Sync {
    type Error;

    // Required methods
    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 Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Exchange API public client struct.

Required Associated Types§

Required Methods§

Source

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

Returns static exchange identifier.

Source

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

Requests exchange information.

Implementors§