Function response_matches_request

Source
pub fn response_matches_request(
    res: &ResponseSpecific,
    req: &RequestSpecific,
) -> bool
Expand description

Returns true if the response and request types specified match. E.g., PingResponse goes with PingRequest. FindNodeResponse goes with FindNodeRequest.