sqlx_postgres/message/sync.rs
1use crate::message::{FrontendMessage, FrontendMessageFormat};
2use sqlx_core::Error;
3use std::num::Saturating;
4
5#[derive(Debug)]
6pub struct Sync;
7
8impl FrontendMessage for Sync {
9 const FORMAT: FrontendMessageFormat = FrontendMessageFormat::Sync;
10
11 #[inline(always)]
12 fn body_size_hint(&self) -> Saturating<usize> {
13 Saturating(0)
14 }
15
16 #[inline(always)]
17 fn encode_body(&self, _buf: &mut Vec<u8>) -> Result<(), Error> {
18 Ok(())
19 }
20}