pub struct BoxedConnector<In, Out>(/* private fields */);
Expand description
A boxed connector
Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> BoxedConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> BoxedConnector<In, Out>
Sourcepub fn new(x: impl BoxableConnector<In, Out>) -> Self
pub fn new(x: impl BoxableConnector<In, Out>) -> Self
Wrap a boxable connector into a box, transforming all the types to concrete types
Trait Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for BoxedConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for BoxedConnector<In, Out>
Source§fn clone_box(&self) -> Box<dyn BoxableConnector<In, Out>>
fn clone_box(&self) -> Box<dyn BoxableConnector<In, Out>>
Clone the connection and box it
Source§fn open_boxed(&self) -> OpenFuture<'_, In, Out> ⓘ
fn open_boxed(&self) -> OpenFuture<'_, In, Out> ⓘ
Open a channel to the remote che
Source§impl<In: RpcMessage, Out: RpcMessage> Clone for BoxedConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Clone for BoxedConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for BoxedConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for BoxedConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> Connector for BoxedConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Connector for BoxedConnector<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> StreamTypes for BoxedConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> StreamTypes for BoxedConnector<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 BoxedConnector<In, Out>
impl<In, Out> !RefUnwindSafe for BoxedConnector<In, Out>
impl<In, Out> Send for BoxedConnector<In, Out>
impl<In, Out> Sync for BoxedConnector<In, Out>
impl<In, Out> Unpin for BoxedConnector<In, Out>
impl<In, Out> !UnwindSafe for BoxedConnector<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