Struct dialectic::types::Split[][src]

pub struct Split<P, Q, R>(pub P, pub Q, pub R);

Split the connection into send-only and receive-only halves using split.

The type Split<P, Q, R> means: do the Transmit-only session P concurrently with the Receive-only session Q, running them both to Done, and when they’ve completed, do the session R.

Trait Implementations

impl<P: 'static, Q: 'static, R: 'static> Actionable for Split<P, Q, R>[src]

type NextAction = Self

The next actual channel action, which must be one of Send, Recv, Offer, Choose, Split, Call, or Done. Read more

impl<P: Clone, Q: Clone, R: Clone> Clone for Split<P, Q, R>[src]

impl<P: Copy, Q: Copy, R: Copy> Copy for Split<P, Q, R>[src]

impl<P: Debug, Q: Debug, R: Debug> Debug for Split<P, Q, R>[src]

impl<P: Default, Q: Default, R: Default> Default for Split<P, Q, R>[src]

impl<P: Eq, Q: Eq, R: Eq> Eq for Split<P, Q, R>[src]

impl<P: HasDual, Q: HasDual, R: HasDual> HasDual for Split<P, Q, R>[src]

type DualSession = Split<Q::DualSession, P::DualSession, R::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.

impl<P: Hash, Q: Hash, R: Hash> Hash for Split<P, Q, R>[src]

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>[src]

type Lifted = Split<P::Lifted, Q::Lifted, R::Lifted>

The result of the lifting operation.

impl<P: Ord, Q: Ord, R: Ord> Ord for Split<P, Q, R>[src]

impl<P: PartialEq, Q: PartialEq, R: PartialEq> PartialEq<Split<P, Q, R>> for Split<P, Q, R>[src]

impl<P: PartialOrd, Q: PartialOrd, R: PartialOrd> PartialOrd<Split<P, Q, R>> for Split<P, Q, R>[src]

impl<N: Unary, P: Scoped<N>, Q: Scoped<N>, R: Scoped<N>> Scoped<N> for Split<P, Q, R>[src]

impl<P, Q, R> StructuralEq for Split<P, Q, R>[src]

impl<P, Q, R> StructuralPartialEq for Split<P, Q, R>[src]

impl<N: Unary, P: Subst<S, N>, Q: Subst<S, N>, R: Subst<S, N>, S> Subst<S, N> for Split<P, Q, R>[src]

type Substituted = Split<P::Substituted, Q::Substituted, R::Substituted>

The result of the substitution.

impl<N: Unary, P: 'static, Q: 'static, R: Then<S, N>, S> Then<S, N> for Split<P, Q, R>[src]

type Combined = Split<P, Q, R::Combined>

The combined type resulting from substituting P for Done in Self.

Auto Trait Implementations

impl<P, Q, R> RefUnwindSafe for Split<P, Q, R> where
    P: RefUnwindSafe,
    Q: RefUnwindSafe,
    R: RefUnwindSafe

impl<P, Q, R> Send for Split<P, Q, R> where
    P: Send,
    Q: Send,
    R: Send

impl<P, Q, R> Sync for Split<P, Q, R> where
    P: Sync,
    Q: Sync,
    R: Sync

impl<P, Q, R> Unpin for Split<P, Q, R> where
    P: Unpin,
    Q: Unpin,
    R: Unpin

impl<P, Q, R> UnwindSafe for Split<P, Q, R> where
    P: UnwindSafe,
    Q: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'a, T, S> As<'a, Val, T> for S where
    S: Into<T>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> By<'a, Mut> for T where
    T: 'a, 
[src]

type Type = &'a mut T

The type of Self when called by Convention.

impl<'a, T> By<'a, Ref> for T where
    T: 'a, 
[src]

type Type = &'a T

The type of Self when called by Convention.

impl<'a, T> By<'a, Val> for T[src]

type Type = T

The type of Self when called by Convention.

impl<'a, T> Convert<'a, Mut, Mut> for T where
    T: 'a, 
[src]

impl<'a, T> Convert<'a, Mut, Ref> for T where
    T: 'a, 
[src]

impl<'a, T> Convert<'a, Mut, Val> for T where
    T: 'a + Clone
[src]

impl<'a, T> Convert<'a, Ref, Ref> for T where
    T: 'a, 
[src]

impl<'a, T> Convert<'a, Ref, Val> for T where
    T: 'a + Clone
[src]

impl<'a, T> Convert<'a, Val, Val> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.