/// as client, send request to server
as client, send request to server
as client send request to server
pub async fn send_request<R>(
        &mut self,
        req_msg: &RequestMessage<R>,
    ) -> Result<(), KfSocketError>
    where
        RequestMessage<R>: KfEncoder + Default + Debug,
    {
        trace!("sending one way request: {:#?}", &req_msg);
        (&mut self.inner).send(req_msg.as_bytes(0)?).await?;
        Ok(())
    }
pub async fn send_request < R > ( & mut self , req_msg : & RequestMessage < R > , ) -> Result < ( ) , KfSocketError > where RequestMessage < R > : KfEncoder + Default + Debug , { trace ! ( " " req_msg ) ; ( & mut self . inner ) . send ( req_msg . as_bytes ( 0 ) ? ) . await ? ; Ok ( ( ) ) }
as client, send request to server
as client send request to server
&mut self
req_msg
&RequestMessage<R>