Skip to main content

poll_oneshot

Function poll_oneshot 

fn poll_oneshot<T>(
    rx: &mut Receiver<Result<T, Error>>,
    cx: &mut Context<'_>,
) -> Poll<Result<T, Error>>
Available on crate feature tokio only.
Expand description

Polls a oneshot receiver and converts a dropped sender into Error::ConnectionClosed.