Trait quic_rpc::transport::Connection

source ·
pub trait Connection<In, Out>: ConnectionCommon<In, Out> {
    // Required method
    fn open_bi(
        &self
    ) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::OpenError>> + Send;
}
Expand description

A connection to a specific remote machine

A connection can be used to open bidirectional typed channels using Connection::open_bi.

Required Methods§

source

fn open_bi( &self ) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::OpenError>> + Send

Open a channel to the remote che

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<A: Connection<S::Res, S::Req>, B: Connection<S::Res, S::Req>, S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for CombinedConnection<A, B, S>

source§

impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for FlumeConnection<S>

source§

impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for HyperConnection<S>

source§

impl<S: Service> Connection<<S as Service>::Res, <S as Service>::Req> for QuinnConnection<S>