Trait ClientTransport
Source pub trait ClientTransport: Send {
// Required methods
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<UnboundedReceiver<ServerToClientMessage>, MdpClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send<'life0, 'async_trait>(
&'life0 mut self,
message: ClientToServerMessage,
) -> Pin<Box<dyn Future<Output = Result<(), MdpClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), MdpClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}