Debian Codegraph @

src/message/sync.rs

raw symbols SCIP
1 use crate::message::{FrontendMessage, FrontendMessageFormat};
2 use sqlx_core::Error;
3 use std::num::Saturating;
4
5 #[derive(Debug)]
6 pub struct Sync;
7
8 impl 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 }