6 lines
160 B
Rust
6 lines
160 B
Rust
|
pub trait RequestResponse {
|
||
|
type Response;
|
||
|
fn num_expected_responses(&self) -> u32;
|
||
|
fn verify_response(&self, response: &Self::Response) -> bool;
|
||
|
}
|