pub struct Split<P, Q, R>(pub P, pub Q, pub R);Expand description
Tuple Fields§
§0: P§1: Q§2: RTrait Implementations§
Source§impl<P: 'static, Q: 'static, R: 'static> Actionable for Split<P, Q, R>
impl<P: 'static, Q: 'static, R: 'static> Actionable for Split<P, Q, R>
Source§impl<P: HasDual, Q: HasDual, R: HasDual> HasDual for Split<P, Q, R>
impl<P: HasDual, Q: HasDual, R: HasDual> HasDual for Split<P, Q, R>
Source§type DualSession = Split<<Q as HasDual>::DualSession, <P as HasDual>::DualSession, <R as HasDual>::DualSession>
type DualSession = Split<<Q as HasDual>::DualSession, <P as HasDual>::DualSession, <R as HasDual>::DualSession>
Note how the dual flips the position of P and Q, because P::Dual is a receiving
session, and therefore belongs on the right of the split, and Q::Dual is a sending
session, and therefore belongs on the left of the split.
Source§impl<N: Unary, Level: Unary, P: Lift<N, Level>, Q: Lift<N, Level>, R: Lift<N, Level>> Lift<N, Level> for Split<P, Q, R>
impl<N: Unary, Level: Unary, P: Lift<N, Level>, Q: Lift<N, Level>, R: Lift<N, Level>> Lift<N, Level> for Split<P, Q, R>
Source§impl<P: Ord, Q: Ord, R: Ord> Ord for Split<P, Q, R>
impl<P: Ord, Q: Ord, R: Ord> Ord for Split<P, Q, R>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P: PartialOrd, Q: PartialOrd, R: PartialOrd> PartialOrd for Split<P, Q, R>
impl<P: PartialOrd, Q: PartialOrd, R: PartialOrd> PartialOrd for Split<P, Q, R>
Source§impl<N: Unary, P: Subst<S, N>, Q: Subst<S, N>, R: Subst<S, N>, S> Subst<S, N> for Split<P, Q, R>
impl<N: Unary, P: Subst<S, N>, Q: Subst<S, N>, R: Subst<S, N>, S> Subst<S, N> for Split<P, Q, R>
Source§type Substituted = Split<<P as Subst<S, N>>::Substituted, <Q as Subst<S, N>>::Substituted, <R as Subst<S, N>>::Substituted>
type Substituted = Split<<P as Subst<S, N>>::Substituted, <Q as Subst<S, N>>::Substituted, <R as Subst<S, N>>::Substituted>
The result of the substitution.
impl<P: Copy, Q: Copy, R: Copy> Copy for Split<P, Q, R>
impl<P: Eq, Q: Eq, R: Eq> Eq for Split<P, Q, R>
impl<N: Unary, P: Scoped<N>, Q: Scoped<N>, R: Scoped<N>> Scoped<N> for Split<P, Q, R>
impl<P, Q, R> StructuralPartialEq for Split<P, Q, R>
Auto Trait Implementations§
impl<P, Q, R> Freeze for Split<P, Q, R>
impl<P, Q, R> RefUnwindSafe for Split<P, Q, R>
impl<P, Q, R> Send for Split<P, Q, R>
impl<P, Q, R> Sync for Split<P, Q, R>
impl<P, Q, R> Unpin for Split<P, Q, R>
impl<P, Q, R> UnwindSafe for Split<P, Q, R>
Blanket Implementations§
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§impl<S> Session for S
impl<S> Session for S
Source§type Dual = <S as HasDual>::DualSession
type Dual = <S as HasDual>::DualSession
The dual to this session type, i.e. the session type for the other side of this channel. Read more
Source§type Action = <S as Actionable>::NextAction
type Action = <S as Actionable>::NextAction
The canonical next channel action for this session type. Read more
Source§fn channel<Tx, Rx>(
make: impl FnMut() -> (Tx, Rx),
) -> (Chan<Self, Tx, Rx>, Chan<Self::Dual, Tx, Rx>)
fn channel<Tx, Rx>( make: impl FnMut() -> (Tx, Rx), ) -> (Chan<Self, Tx, Rx>, Chan<Self::Dual, Tx, Rx>)
Source§fn bichannel<Tx0, Rx0, Tx1, Rx1>(
make0: impl FnOnce() -> (Tx0, Rx0),
make1: impl FnOnce() -> (Tx1, Rx1),
) -> (Chan<Self, Tx0, Rx1>, Chan<Self::Dual, Tx1, Rx0>)
fn bichannel<Tx0, Rx0, Tx1, Rx1>( make0: impl FnOnce() -> (Tx0, Rx0), make1: impl FnOnce() -> (Tx1, Rx1), ) -> (Chan<Self, Tx0, Rx1>, Chan<Self::Dual, Tx1, Rx0>)
Source§fn wrap<Tx, Rx>(tx: Tx, rx: Rx) -> Chan<Self, Tx, Rx>
fn wrap<Tx, Rx>(tx: Tx, rx: Rx) -> Chan<Self, Tx, Rx>
Given a transmitting and receiving end of an un-session-typed connection, wrap them in a new
session-typed channel for the protocol
P. Read more