sqlx-core 0.2.6

Core of SQLx, the rust SQL toolkit. Not intended to be used directly.
Documentation
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);
    }
}