sqlx_core_oldapi/postgres/message/
sync.rs

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