/// as client, send request and wait for reply from server
as client, send request and wait for reply from server
as client send request and wait for reply from server
pub async fn send<R>(
        &mut self,
        req_msg: &RequestMessage<R>,
    ) -> Result<ResponseMessage<R::Response>, SocketError>
    where
        R: Request,
    {
        self.sink.send_request(req_msg).await?;
        self.stream.next_response(req_msg).await
    }
pub async fn send < R > ( & mut self , req_msg : & RequestMessage < R > , ) -> Result < ResponseMessage < R :: Response > , SocketError > where R : Request , { self . sink . send_request ( req_msg ) . await ? ; self . stream . next_response ( req_msg ) . await }
as client, send request and wait for reply from server
as client send request and wait for reply from server
&mut self
req_msg
&RequestMessage<R>