Function sesh::recv [−][src]
pub fn recv<T, S>(s: Recv<T, S>) -> Result<(T, S), Box<dyn Error>> where
T: Send,
S: Session,
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.