quic_rpc::transport::boxed

Trait BoxableConnector

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

A boxable connector

Required Methods§

Source

fn clone_box(&self) -> Box<dyn BoxableConnector<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, Out, C> BoxableConnector<In, Out> for MappedConnector<In, Out, C>
where In: RpcMessage + TryFrom<C::In>, Out: RpcMessage, C: Connector, C::Out: From<Out>, C::SendError: Into<Error>, C::RecvError: Into<Error>, C::OpenError: Into<Error>,

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for FlumeConnector<In, Out>

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for IrohConnector<In, Out>

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for QuinnConnector<In, Out>

Source§

impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for BoxedConnector<In, Out>