pub struct CombinedConnector<A, B> {
pub a: Option<A>,
pub b: Option<B>,
}
Expand description
A connection that combines two other connections
Fields§
§a: Option<A>
First connection
b: Option<B>
Second connection
Implementations§
Trait Implementations§
Source§impl<A: Clone, B: Clone> Clone for CombinedConnector<A, B>
impl<A: Clone, B: Clone> Clone for CombinedConnector<A, B>
Source§fn clone(&self) -> CombinedConnector<A, B>
fn clone(&self) -> CombinedConnector<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: ConnectionErrors, B: ConnectionErrors> ConnectionErrors for CombinedConnector<A, B>
impl<A: ConnectionErrors, B: ConnectionErrors> ConnectionErrors for CombinedConnector<A, B>
Source§type AcceptError = AcceptError<A, B>
type AcceptError = AcceptError<A, B>
Error when accepting a channel
Source§impl<A: Connector, B: Connector<In = A::In, Out = A::Out>> Connector for CombinedConnector<A, B>
impl<A: Connector, B: Connector<In = A::In, Out = A::Out>> Connector for CombinedConnector<A, B>
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<A: Connector, B: Connector<In = A::In, Out = A::Out>> StreamTypes for CombinedConnector<A, B>
impl<A: Connector, B: Connector<In = A::In, Out = A::Out>> StreamTypes for CombinedConnector<A, B>
Source§type In = <A as StreamTypes>::In
type In = <A as StreamTypes>::In
The type of messages that can be received on the channel
Source§type Out = <A as StreamTypes>::Out
type Out = <A as StreamTypes>::Out
The type of messages that can be sent on the channel
Source§type RecvStream = RecvStream<A, B>
type RecvStream = RecvStream<A, B>
Receive side of a bidirectional typed channel
Auto Trait Implementations§
impl<A, B> Freeze for CombinedConnector<A, B>
impl<A, B> RefUnwindSafe for CombinedConnector<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for CombinedConnector<A, B>
impl<A, B> Sync for CombinedConnector<A, B>
impl<A, B> Unpin for CombinedConnector<A, B>
impl<A, B> UnwindSafe for CombinedConnector<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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
)