nestjs_nats_connector::requester

Function request

Source
pub async fn request<Pattern: Serialize + DeserializeOwned, RequestData: Serialize, ResponseData: DeserializeOwned>(
    pattern: Pattern,
    data: RequestData,
    connection: &Connection,
) -> (Message, Response<ResponseData>)