mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-11-01 05:52:43 +00:00
14 lines
273 B
Rust
14 lines
273 B
Rust
use crate::io::BufMut;
|
|
use crate::postgres::protocol::Encode;
|
|
use byteorder::NetworkEndian;
|
|
|
|
pub struct Terminate;
|
|
|
|
impl Encode for Terminate {
|
|
#[inline]
|
|
fn encode(&self, buf: &mut Vec<u8>) {
|
|
buf.push(b'X');
|
|
buf.put_i32::<NetworkEndian>(4);
|
|
}
|
|
}
|