1 2 3 4 5 6 7 8 9 10 11
use crate::io::Encode; #[derive(Debug)] pub struct Sync; impl Encode<'_> for Sync { fn encode_with(&self, buf: &mut Vec<u8>, _: ()) { buf.push(b'S'); buf.extend(&4_i32.to_be_bytes()); } }