/// Receive a value of type `T`. Can fail. Returns either a pair of the received
/// value and the continuation of the session `S` or an error.
Receive a value of type `T`. Can fail. Returns either a pair of the received
value and the continuation of the session `S` or an error.
Receive a value of type ` T ` . Can fail . Returns either a pair of the received value and the continuation of the session ` S ` or an error .
pub fn recv<T, S>(s: Recv<T, S>) -> Result<(T, S), Box<dyn Error>>
where
    T: marker::Send,
    S: Session,
{
    let (v, s) = s.channel.recv()?;
    Ok((v, s))
}
pub fn recv < T , S > ( s : Recv < T , S > ) -> Result < ( T , S ) , Box < dyn Error > > where T : marker :: Send , S : Session , { let ( v , s ) = s . channel . recv ( ) ? ; Ok ( ( v , s ) ) }
Receive a value of type `T`.
Receive a value of type ` T ` .
s
Recv<T, S>