pub trait Request {
const OPCODE: RequestOpcode;
fn serialize(&self, buf: &mut impl BufMut) -> Result<(), ParseError>;
fn to_bytes(&self) -> Result<Bytes, ParseError> { ... }
}
pub trait Request {
const OPCODE: RequestOpcode;
fn serialize(&self, buf: &mut impl BufMut) -> Result<(), ParseError>;
fn to_bytes(&self) -> Result<Bytes, ParseError> { ... }
}