pub async fn send_timeout(
        &mut self,
        req: Request,
        duration: Duration,
    ) -> Result<Response, TransportError> {
        utils::timeout(duration, self.send(req))
            .await
            .map_err(TransportError::from)
            .and_then(convert::identity)
    }
/// Sends a request and waits for a response, timing out after duration has passed
Sends a request and waits for a response, timing out after duration has passed
Sends a request and waits for a response timing out after duration has passed
pub async fn send_timeout(
        &mut self,
        req: Request,
        duration: Duration,
    ) -> Result<Response, TransportError> {
        utils::timeout(duration, self.send(req))
            .await
            .map_err(TransportError::from)
            .and_then(convert::identity)
    }
pub async fn send_timeout ( & mut self , req : Request , duration : Duration , ) -> Result < Response , TransportError > { utils :: timeout ( duration , self . send ( req ) ) . await . map_err ( TransportError :: from ) . and_then ( convert :: identity ) }
Sends a request and waits for a response, timing out after duration has passed
Sends a request and waits for a response timing out after duration has passed
&mut self
req
Request
duration
Duration