Struct dialectic::types::Recv[][src]

#[repr(transparent)]pub struct Recv<T, P>(pub PhantomData<T>, pub P);

Receive a message of type T using recv, then continue with protocol P.

Trait Implementations

impl<T: 'static, P: 'static> Actionable for Recv<T, P>[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<T: Clone, P: Clone> Clone for Recv<T, P>[src]

impl<T: Copy, P: Copy> Copy for Recv<T, P>[src]

impl<T: Debug, P: Debug> Debug for Recv<T, P>[src]

impl<T: Default, P: Default> Default for Recv<T, P>[src]

impl<T: Eq, P: Eq> Eq for Recv<T, P>[src]

impl<T: Any, P: HasDual> HasDual for Recv<T, P>[src]

type DualSession = Send<T, P::DualSession>

The dual to this session type, i.e. the session type required of the other end of the channel. Read more

impl<T: Hash, P: Hash> Hash for Recv<T, P>[src]

impl<N: Unary, T: 'static, P: Lift<N, Level>, Level: Unary> Lift<N, Level> for Recv<T, P>[src]

type Lifted = Recv<T, P::Lifted>

The result of the lifting operation.

impl<T: Ord, P: Ord> Ord for Recv<T, P>[src]

impl<T: PartialEq, P: PartialEq> PartialEq<Recv<T, P>> for Recv<T, P>[src]

impl<T: PartialOrd, P: PartialOrd> PartialOrd<Recv<T, P>> for Recv<T, P>[src]

impl<T: 'static, N: Unary, P: Scoped<N>> Scoped<N> for Recv<T, P>[src]

impl<T, P> StructuralEq for Recv<T, P>[src]

impl<T, P> StructuralPartialEq for Recv<T, P>[src]

impl<N: Unary, T: 'static, P: Subst<Q, N>, Q> Subst<Q, N> for Recv<T, P>[src]

type Substituted = Recv<T, P::Substituted>

The result of the substitution.

impl<N: Unary, T: 'static, P: Then<Q, N>, Q> Then<Q, N> for Recv<T, P>[src]

type Combined = Recv<T, P::Combined>

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

Auto Trait Implementations

impl<T, P> RefUnwindSafe for Recv<T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, P> Send for Recv<T, P> where
    P: Send,
    T: Send

impl<T, P> Sync for Recv<T, P> where
    P: Sync,
    T: Sync

impl<T, P> Unpin for Recv<T, P> where
    P: Unpin,
    T: Unpin

impl<T, P> UnwindSafe for Recv<T, P> where
    P: UnwindSafe,
    T: 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.