pub struct HyperConnector<In: RpcMessage, Out: RpcMessage> { /* private fields */ }
Expand description
Hyper based connection to a server
Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> HyperConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> HyperConnector<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: RpcMessage, Out: RpcMessage> Clone for HyperConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Clone for HyperConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for HyperConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for HyperConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> Connector for HyperConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Connector for HyperConnector<In, Out>
Source§async fn open(
&self,
) -> Result<(Self::SendSink, Self::RecvStream), Self::OpenError>
async fn open( &self, ) -> Result<(Self::SendSink, Self::RecvStream), Self::OpenError>
Open a channel to the remote che
Source§fn map<In1, Out1>(self) -> MappedConnector<In1, Out1, Self>
fn map<In1, Out1>(self) -> MappedConnector<In1, Out1, Self>
Map the input and output types of this connection
Source§impl<In: RpcMessage, Out: RpcMessage> Debug for HyperConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Debug for HyperConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> StreamTypes for HyperConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> StreamTypes for HyperConnector<In, Out>
Source§type RecvStream = RecvStream<In>
type RecvStream = RecvStream<In>
Receive side of a bidirectional typed channel
Auto Trait Implementations§
impl<In, Out> Freeze for HyperConnector<In, Out>
impl<In, Out> !RefUnwindSafe for HyperConnector<In, Out>
impl<In, Out> Send for HyperConnector<In, Out>
impl<In, Out> Sync for HyperConnector<In, Out>
impl<In, Out> Unpin for HyperConnector<In, Out>
impl<In, Out> !UnwindSafe for HyperConnector<In, Out>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more