pub trait JsonRpcClient: ClientT + Sized + MaybeSend + MaybeSync {
    // Required methods
    fn connect<'life0, 'async_trait>(
        url: &'life0 SafeUrl
    ) -> Pin<Box<dyn Future<Output = Result<Self, JsonRpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_connected(&self) -> bool;
}

Required Methods§

source

fn connect<'life0, 'async_trait>( url: &'life0 SafeUrl ) -> Pin<Box<dyn Future<Output = Result<Self, JsonRpcError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn is_connected(&self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl JsonRpcClient for WsClient

source§

fn connect<'life0, 'async_trait>( url: &'life0 SafeUrl ) -> Pin<Box<dyn Future<Output = Result<Self, JsonRpcError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_connected(&self) -> bool

Implementors§