quic_rpc::transport::boxed

Trait BoxableConnection

Source
pub trait BoxableConnection<In: RpcMessage, Out: RpcMessage>:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn clone_box(&self) -> Box<dyn BoxableConnection<In, Out>>;
    fn open_boxed(&self) -> OpenFuture<'_, In, Out> ;
}
Expand description

A boxable connection

Required Methods§

Source

fn clone_box(&self) -> Box<dyn BoxableConnection<In, Out>>

Clone the connection and box it

Source

fn open_boxed(&self) -> OpenFuture<'_, In, Out>

Open a channel to the remote che

Implementors§

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableConnection<In, Out> for FlumeConnection<In, Out>

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableConnection<In, Out> for QuinnConnection<In, Out>