pub trait NetworkCodec: GossipsubCodec<RequestMessage = GossipsubBroadcastRequest, ResponseMessage = GossipsubMessage> + RequestResponseCodec<Request = RequestMessage, Response = NetworkResponse> + RequestResponseConverter<NetworkResponse = NetworkResponse, OutboundResponse = OutboundResponse, ResponseMessage = ResponseMessage> + Clone + Send + 'static {
    // Required method
    fn get_req_res_protocol(&self) -> <Self as RequestResponseCodec>::Protocol;
}
Expand description

Main Codec trait Needs to be implemented and provided to FuelBehaviour

Required Methods§

source

fn get_req_res_protocol(&self) -> <Self as RequestResponseCodec>::Protocol

Returns RequestResponse’s Protocol Needed for initialization of RequestResponse Behaviour

Implementors§