async fn next_request(&mut self) -> ResponseSender<Request, Response, Error> {
        match self.try_next_request().await {
            Some(request) => request,
            None => panic!("Timeout while waiting for a request"),
        }
    }
/// A helper method to get the next request from the queue.
///
/// Returns the next request in the internal queue or waits at most the max delay time
/// configured by [`MockServiceBuilder::with_max_request_delay`] for a new request to be
/// received, and then returns that.
///
/// # Panics
///
/// If the queue is empty and a request is not received before the max request delay timeout
/// expires.
A helper method to get the next request from the queue.
Returns the next request in the internal queue or waits at most the max delay time
configured by [`MockServiceBuilder::with_max_request_delay`] for a new request to be
received, and then returns that.
A helper method to get the next request from the queue . Returns the next request in the internal queue or waits at most the max delay time configured by [ ` MockServiceBuilder :: with_max_request_delay ` ] for a new request to be received and then returns that .
async fn next_request(&mut self) -> ResponseSender<Request, Response, Error> {
        match self.try_next_request().await {
            Some(request) => request,
            None => panic!("Timeout while waiting for a request"),
        }
    }
async fn next_request ( & mut self ) -> ResponseSender < Request , Response , Error > { match self . try_next_request ( ) . await { Some ( request ) => request , None => panic ! ( " " ) , } }
A helper method to get the next request from the queue.
A helper method to get the next request from the queue .
&mut self
panics
If the queue is empty and a request is not received before the max request delay timeout
expires.
If the queue is empty and a request is not received before the max request delay timeout expires .