Struct quic_rpc::transport::combined::ChannelTypes
source · Expand description
Channel types for combined channels
A
and B
are the channel types for the two channels.
In
and Out
are the message types for the two channels.
Trait Implementations§
source§impl<A: CT, B: CT> ChannelTypes for ChannelTypes<A, B>
impl<A: CT, B: CT> ChannelTypes for ChannelTypes<A, B>
§type SendSink<M: RpcMessage> = SendSink<A, B, M>
type SendSink<M: RpcMessage> = SendSink<A, B, M>
The sink used for sending either requests or responses on this channel
§type RecvStream<M: RpcMessage> = RecvStream<A, B, M>
type RecvStream<M: RpcMessage> = RecvStream<A, B, M>
The stream used for receiving either requests or responses on this channel
§type OpenBiError = OpenBiError<A, B>
type OpenBiError = OpenBiError<A, B>
Error you might get when opening a new connection to the server
§type OpenBiFuture<'a, In: RpcMessage, Out: RpcMessage> = Pin<Box<dyn Future<Output = Result<(SendSink<A, B, Out>, RecvStream<A, B, In>), OpenBiError<A, B>>> + Send + 'a, Global>>
type OpenBiFuture<'a, In: RpcMessage, Out: RpcMessage> = Pin<Box<dyn Future<Output = Result<(SendSink<A, B, Out>, RecvStream<A, B, In>), OpenBiError<A, B>>> + Send + 'a, Global>>
Future returned by open_bi
§type AcceptBiError = AcceptBiError<A, B>
type AcceptBiError = AcceptBiError<A, B>
Error you might get when waiting for new streams on the server side
§type AcceptBiFuture<'a, In: RpcMessage, Out: RpcMessage> = Pin<Box<dyn Future<Output = Result<(SendSink<A, B, Out>, RecvStream<A, B, In>), AcceptBiError<A, B>>> + Send + 'a, Global>>
type AcceptBiFuture<'a, In: RpcMessage, Out: RpcMessage> = Pin<Box<dyn Future<Output = Result<(SendSink<A, B, Out>, RecvStream<A, B, In>), AcceptBiError<A, B>>> + Send + 'a, Global>>
Future returned by accept_bi
§type ClientChannel<In: RpcMessage, Out: RpcMessage> = ClientChannel<A, B, In, Out>
type ClientChannel<In: RpcMessage, Out: RpcMessage> = ClientChannel<A, B, In, Out>
Channel type
§type ServerChannel<In: RpcMessage, Out: RpcMessage> = ServerChannel<A, B, In, Out>
type ServerChannel<In: RpcMessage, Out: RpcMessage> = ServerChannel<A, B, In, Out>
Channel type
source§impl<A: CT, B: CT, In: RpcMessage, Out: RpcMessage> ClientChannel<In, Out, ChannelTypes<A, B>> for ClientChannel<A, B, In, Out>
impl<A: CT, B: CT, In: RpcMessage, Out: RpcMessage> ClientChannel<In, Out, ChannelTypes<A, B>> for ClientChannel<A, B, In, Out>
source§fn open_bi(&self) -> OpenBiFuture<'_, A, B, In, Out>
fn open_bi(&self) -> OpenBiFuture<'_, A, B, In, Out>
Open a bidirectional stream
source§impl<A: Clone + CT, B: Clone + CT> Clone for ChannelTypes<A, B>
impl<A: Clone + CT, B: Clone + CT> Clone for ChannelTypes<A, B>
source§fn clone(&self) -> ChannelTypes<A, B>
fn clone(&self) -> ChannelTypes<A, B>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<A: CT, B: CT, In: RpcMessage, Out: RpcMessage> ServerChannel<In, Out, ChannelTypes<A, B>> for ServerChannel<A, B, In, Out>
impl<A: CT, B: CT, In: RpcMessage, Out: RpcMessage> ServerChannel<In, Out, ChannelTypes<A, B>> for ServerChannel<A, B, In, Out>
source§fn local_addr(&self) -> &[LocalAddr]
fn local_addr(&self) -> &[LocalAddr]
The local addresses this server is bound to. Read more
source§fn accept_bi(&self) -> AcceptBiFuture<'_, A, B, In, Out>
fn accept_bi(&self) -> AcceptBiFuture<'_, A, B, In, Out>
Accept a bidirectional stream