pub struct MappedConnector<In, Out, C> { /* private fields */ }
Expand description
A connection that maps input and output types
Implementations§
Trait Implementations§
Source§impl<In, Out, C> BoxableConnector<In, Out> for MappedConnector<In, Out, C>
impl<In, Out, C> BoxableConnector<In, Out> for MappedConnector<In, Out, C>
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, Out, C> Clone for MappedConnector<In, Out, C>where
C: Clone,
impl<In, Out, C> Clone for MappedConnector<In, Out, C>where
C: Clone,
Source§impl<In, Out, C> ConnectionErrors for MappedConnector<In, Out, C>
impl<In, Out, C> ConnectionErrors for MappedConnector<In, Out, C>
Source§type RecvError = ErrorOrMapError<<C as ConnectionErrors>::RecvError>
type RecvError = ErrorOrMapError<<C as ConnectionErrors>::RecvError>
Error when receiving a message via a channel
Source§type SendError = <C as ConnectionErrors>::SendError
type SendError = <C as ConnectionErrors>::SendError
Error when sending a message via a channel
Source§type OpenError = <C as ConnectionErrors>::OpenError
type OpenError = <C as ConnectionErrors>::OpenError
Error when opening a channel
Source§type AcceptError = <C as ConnectionErrors>::AcceptError
type AcceptError = <C as ConnectionErrors>::AcceptError
Error when accepting a channel
Source§impl<In, Out, C> Connector for MappedConnector<In, Out, C>
impl<In, Out, C> Connector for MappedConnector<In, Out, C>
Source§fn open(
&self,
) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::OpenError>> + Send
fn open( &self, ) -> impl Future<Output = Result<(Self::SendSink, Self::RecvStream), Self::OpenError>> + Send
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, Out, C> StreamTypes for MappedConnector<In, Out, C>
impl<In, Out, C> StreamTypes for MappedConnector<In, Out, C>
Source§type RecvStream = MappedRecvStream<<C as StreamTypes>::RecvStream, In>
type RecvStream = MappedRecvStream<<C as StreamTypes>::RecvStream, In>
Receive side of a bidirectional typed channel
Source§type SendSink = MappedSendSink<<C as StreamTypes>::SendSink, Out, <C as StreamTypes>::Out>
type SendSink = MappedSendSink<<C as StreamTypes>::SendSink, Out, <C as StreamTypes>::Out>
Send side of a bidirectional typed channel
Auto Trait Implementations§
impl<In, Out, C> Freeze for MappedConnector<In, Out, C>where
C: Freeze,
impl<In, Out, C> RefUnwindSafe for MappedConnector<In, Out, C>
impl<In, Out, C> Send for MappedConnector<In, Out, C>
impl<In, Out, C> Sync for MappedConnector<In, Out, C>
impl<In, Out, C> Unpin for MappedConnector<In, Out, C>
impl<In, Out, C> UnwindSafe for MappedConnector<In, Out, C>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)