Function poll_oneshot
fn poll_oneshot<T>(
rx: &mut Receiver<Result<T, Error>>,
cx: &mut Context<'_>,
) -> Poll<Result<T, Error>>Expand description
Polls a oneshot receiver and converts a dropped sender into
Error::ConnectionClosed.