[][src]Struct dialectic::types::Send

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

Send a message of type T using send, then continue with protocol P.

Notes

A session ending with a Send can be abbreviated: Send<String> is shorthand for Send<String, Done>.

Trait Implementations

impl<E, T: Any, P> Actionable<E> for Send<T, P> where
    P: Scoped<E::Depth>,
    E: Environment
[src]

type Action = Send<T, P>

The next actual channel action: Send, Recv, Offer, Choose, or Split. This steps through Loop, Break, and Continue transparently. Read more

type Env = E

The environment resulting from stepping through one or many Loop, Break, or Continue points to the next real channel action. Read more

impl<T: Clone, P: Clone> Clone for Send<T, P>[src]

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

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

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

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

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

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

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

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

impl<N: Unary, T: Any, P: Scoped<N>> Scoped<N> for Send<T, P>[src]

impl<T: Any, P: Session> Session for Send<T, P>[src]

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

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

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

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

Auto Trait Implementations

impl<T, P> RefUnwindSafe for Send<T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, P> Send for Send<T, P> where
    P: Send,
    T: Send
[src]

impl<T, P> Sync for Send<T, P> where
    P: Sync,
    T: Sync
[src]

impl<T, P> Unpin for Send<T, P> where
    P: Unpin,
    T: Unpin
[src]

impl<T, P> UnwindSafe for Send<T, P> where
    P: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

type Type = &'a mut T

The type of Self when called by Convention.

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

type Type = &'a T

The type of Self when called by Convention.

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

type Type = T

The type of Self when called by Convention.

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[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.