1use crate::io::Encode; 2 3pub struct Terminate; 4 5impl Encode<'_> for Terminate { 6 fn encode_with(&self, buf: &mut Vec<u8>, _: ()) { 7 buf.push(b'X'); 8 buf.extend(&4_u32.to_be_bytes()); 9 } 10}