/// Check whether a response happens to be available for this pending request.
///
/// This function does _not_ block, nor does it require being in an `async` context.
Check whether a response happens to be available for this pending request.
This function does _not_ block, nor does it require being in an `async` context.
Check whether a response happens to be available for this pending request . This function does _not_ block nor does it require being in an ` async ` context .
pub fn poll(&mut self) -> Option<ResponseResult> {
        match self.receiver.try_recv() {
            Err(oneshot::error::TryRecvError::Closed) => {
                panic!("Pending request sender was dropped")
            }
            // the request is still in flight
            Err(oneshot::error::TryRecvError::Empty) => None,
            Ok(res) => Some(res),
        }
    }
pub fn poll ( & mut self ) -> Option < ResponseResult > { match self . receiver . try_recv ( ) { Err ( oneshot :: error :: TryRecvError :: Closed ) => { panic ! ( " " ) } // the request is still in flight Err ( oneshot :: error :: TryRecvError :: Empty ) => None , Ok ( res ) => Some ( res ) , } }
Check whether a response happens to be available for this pending request.
Check whether a response happens to be available for this pending request .
&mut self