mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
14 lines
245 B
Rust
14 lines
245 B
Rust
use super::Encode;
|
|
use crate::io::BufMut;
|
|
use byteorder::NetworkEndian;
|
|
|
|
pub struct Flush;
|
|
|
|
impl Encode for Flush {
|
|
#[inline]
|
|
fn encode(&self, buf: &mut Vec<u8>) {
|
|
buf.push(b'H');
|
|
buf.put_i32::<NetworkEndian>(4);
|
|
}
|
|
}
|