fedimint_api_client::apiTrait IClientConnection
Source pub trait IClientConnection:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn request<'life0, 'async_trait>(
&'life0 self,
method: ApiMethod,
request: ApiRequestErased,
) -> Pin<Box<dyn Future<Output = PeerResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn await_disconnection<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn into_dyn(self) -> DynClientConnection
where Self: Sized { ... }
}