pub async fn send(&mut self, req: Request) -> Result<Response, TransportError> {
        trace!("Sending request: {:?}", req);

        // Send mail and get back a mailbox
        let mut mailbox = self.mail(req).await?;

        // Wait for first response, and then drop the mailbox
        mailbox.next().await.ok_or_else(|| {
            TransportError::IoError(io::Error::from(io::ErrorKind::ConnectionAborted))
        })
    }
/// Sends a request and waits for a response, failing if unable to send a request or if
/// the session's receiving line to the remote server has already been severed
Sends a request and waits for a response, failing if unable to send a request or if
the session's receiving line to the remote server has already been severed
Sends a request and waits for a response failing if unable to send a request or if the session ' s receiving line to the remote server has already been severed
pub async fn send(&mut self, req: Request) -> Result<Response, TransportError> {
        trace!("Sending request: {:?}", req);
        // Send mail and get back a mailbox
        let mut mailbox = self.mail(req).await?;
        // Wait for first response, and then drop the mailbox
        mailbox.next().await.ok_or_else(|| {
            TransportError::IoError(io::Error::from(io::ErrorKind::ConnectionAborted))
        })
    }
pub async fn send ( & mut self , req : Request ) -> Result < Response , TransportError > { trace ! ( " " req ) ; // Send mail and get back a mailbox let mut mailbox = self . mail ( req ) . await ? ; // Wait for first response, and then drop the mailbox mailbox . next ( ) . await . ok_or_else ( | | { TransportError :: IoError ( io :: Error :: from ( io :: ErrorKind :: ConnectionAborted ) ) } ) }
Sends a request and waits for a response, failing if unable to send a request or if
the session's receiving line to the remote server has already been severed
Sends a request and waits for a response failing if unable to send a request or if the session ' s receiving line to the remote server has already been severed
&mut self
req
Request