/// Sends a request and returns an object that will eventually return the response
Sends a request and returns an object that will eventually return the response
Sends a request and returns an object that will eventually return the response
pub fn send_request(
        &self,
        client_id: ConnectionId,
        request: T,
    ) -> Result<Response<T::ResponseMessage>, NetworkError> {
        let (id, response) = self.response_map.get_responder();
        self.server
            .send_message(client_id, RequestInternal { id, request })?;
        Ok(response)
    }
pub fn send_request ( & self , client_id : ConnectionId , request : T , ) -> Result < Response < T :: ResponseMessage > , NetworkError > { let ( id , response ) = self . response_map . get_responder ( ) ; self . server . send_message ( client_id , RequestInternal { id , request } ) ? ; Ok ( response ) }
Sends a request and returns an object that will eventually return the response
Sends a request and returns an object that will eventually return the response
&self
client_id
ConnectionId
request
T