pub trait RequestResponseConverter {
type OutboundResponse;
type NetworkResponse;
type ResponseMessage;
// Required methods
fn convert_to_network_response(
&self,
res_msg: &Self::OutboundResponse
) -> Result<Self::NetworkResponse, Error>;
fn convert_to_response(
&self,
inter_msg: &Self::NetworkResponse
) -> Result<Self::ResponseMessage, Error>;
}
Required Associated Types§
sourcetype OutboundResponse
type OutboundResponse
Response that is ready to be converted into NetworkResponse
sourcetype NetworkResponse
type NetworkResponse
Response that is sent over the network
sourcetype ResponseMessage
type ResponseMessage
Final Response Message deserialized from IntermediateResponse