Struct quic_rpc::transport::http2::ClientChannel
source · pub struct ClientChannel<In: RpcMessage, Out: RpcMessage> { /* private fields */ }
Expand description
Client channel
Implementations§
source§impl<In: RpcMessage, Out: RpcMessage> ClientChannel<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ClientChannel<In, Out>
sourcepub fn with_config(uri: Uri, config: ChannelConfig) -> Self
pub fn with_config(uri: Uri, config: ChannelConfig) -> Self
create a client given an uri and a custom configuration
sourcepub fn with_connector<C: Connect + Clone + Send + Sync + 'static>(
connector: C,
uri: Uri,
config: Arc<ChannelConfig>
) -> Self
pub fn with_connector<C: Connect + Clone + Send + Sync + 'static>(
connector: C,
uri: Uri,
config: Arc<ChannelConfig>
) -> Self
create a client given an uri and a custom configuration
Trait Implementations§
source§impl<In, Out> ClientChannel<In, Out, ChannelTypes> for ClientChannel<In, Out>where
In: RpcMessage,
Out: RpcMessage,
impl<In, Out> ClientChannel<In, Out, ChannelTypes> for ClientChannel<In, Out>where
In: RpcMessage,
Out: RpcMessage,
source§fn open_bi(&self) -> OpenBiFuture<'_, In, Out> ⓘ
fn open_bi(&self) -> OpenBiFuture<'_, In, Out> ⓘ
Open a bidirectional stream