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§
sourcefn clone_box(&self) -> Box<dyn BoxableConnection<In, Out>>
fn clone_box(&self) -> Box<dyn BoxableConnection<In, Out>>
Clone the connection and box it
sourcefn open_boxed(&self) -> OpenFuture<'_, In, Out> ⓘ
fn open_boxed(&self) -> OpenFuture<'_, In, Out> ⓘ
Open a channel to the remote che