Skip to main content

ClientFactory

Trait ClientFactory 

Source
pub trait ClientFactory<T, C>: Send + Sync
where T: MessageChannel<C>, C: Codec,
{ // Required method fn create<'life0, 'life1, 'async_trait>( &'life0 self, endpoint: &'life1 Endpoint, ) -> Pin<Box<dyn Future<Output = Result<RpcClient<T, C>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }

Required Methods§

Source

fn create<'life0, 'life1, 'async_trait>( &'life0 self, endpoint: &'life1 Endpoint, ) -> Pin<Box<dyn Future<Output = Result<RpcClient<T, C>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§