Skip to main content

recv

Function recv 

Source
pub async fn recv<S>(stream: &mut S) -> Result<Option<Message>>
where S: Stream<Item = Result<Message, Error>> + Unpin,
Expand description

The next protocol message on stream (a Relay, or its receiving half), or None once the relay closed the connection.