1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use crate::io::BufMut;
use crate::postgres::protocol::Encode;
use byteorder::NetworkEndian;

pub struct Flush;

impl Encode for Flush {
    fn encode(&self, buf: &mut Vec<u8>) {
        buf.push(b'H');
        buf.put_i32::<NetworkEndian>(4);
    }
}