#[repr(transparent)]pub struct Send<T, P>(pub PhantomData<T>, pub P);Expand description
Send a message of type T using send, then continue with
protocol P.
Tuple Fields§
§0: PhantomData<T>§1: PTrait Implementations§
Source§impl<T: 'static, P: 'static> Actionable for Send<T, P>
impl<T: 'static, P: 'static> Actionable for Send<T, P>
Source§impl<T: Any, P: HasDual> HasDual for Send<T, P>
impl<T: Any, P: HasDual> HasDual for Send<T, P>
Source§type DualSession = Recv<T, <P as HasDual>::DualSession>
type DualSession = Recv<T, <P as HasDual>::DualSession>
The dual to this session type, i.e. the session type required of the other end of the
channel.
Source§impl<T: Ord, P: Ord> Ord for Send<T, P>
impl<T: Ord, P: Ord> Ord for Send<T, P>
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<T: PartialOrd, P: PartialOrd> PartialOrd for Send<T, P>
impl<T: PartialOrd, P: PartialOrd> PartialOrd for Send<T, P>
Source§impl<N: Unary, T: 'static, P: Subst<Q, N>, Q> Subst<Q, N> for Send<T, P>
impl<N: Unary, T: 'static, P: Subst<Q, N>, Q> Subst<Q, N> for Send<T, P>
Source§type Substituted = Send<T, <P as Subst<Q, N>>::Substituted>
type Substituted = Send<T, <P as Subst<Q, N>>::Substituted>
The result of the substitution.
impl<T: Copy, P: Copy> Copy for Send<T, P>
impl<T: Eq, P: Eq> Eq for Send<T, P>
impl<T: 'static, N: Unary, P: Scoped<N>> Scoped<N> for Send<T, P>
impl<T, P> StructuralPartialEq for Send<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for Send<T, P>where
P: Freeze,
impl<T, P> RefUnwindSafe for Send<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for Send<T, P>
impl<T, P> Sync for Send<T, P>
impl<T, P> Unpin for Send<T, P>
impl<T, P> UnwindSafe for Send<T, P>where
P: UnwindSafe,
T: UnwindSafe,
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