mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-20 00:54:18 +00:00
21 lines
467 B
Rust
21 lines
467 B
Rust
use crate::message::{FrontendMessage, FrontendMessageFormat};
|
|
use sqlx_core::Error;
|
|
use std::num::Saturating;
|
|
|
|
#[derive(Debug)]
|
|
pub struct Sync;
|
|
|
|
impl FrontendMessage for Sync {
|
|
const FORMAT: FrontendMessageFormat = FrontendMessageFormat::Sync;
|
|
|
|
#[inline(always)]
|
|
fn body_size_hint(&self) -> Saturating<usize> {
|
|
Saturating(0)
|
|
}
|
|
|
|
#[inline(always)]
|
|
fn encode_body(&self, _buf: &mut Vec<u8>) -> Result<(), Error> {
|
|
Ok(())
|
|
}
|
|
}
|