1 2 3 4 5 6 7 8 9
use super::Response; pub(crate) trait Request { type Response: Response; fn serialize(&self) -> Vec<u8>; fn transaction_id(&self) -> u32; fn action(&self) -> u32; }