Trait quic_rpc::transport::boxed::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§