/
germanubis
/
sqlx
ΠΠ±Π·ΠΎΡ
ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ
ΠΠΎΠΉΡΠΈ
/
germanubis
/
sqlx
ΠΠΎΠ΄
ΠΠ°ΠΏΡΠΎΡΡ
0
ΠΠ°Π΄Π°ΡΠΈ
ΠΠΈΠΊΠΈ
ΠΠ°ΠΊΠ΅ΡΡ
0
Π Π΅Π»ΠΈΠ·Ρ
0
ΠΠ½Π°Π»ΠΈΡΠΈΠΊΠ°
ΠΠ΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ
v0.8.2
sqlx-postgres/src/message/sync.rs
20 ΡΡΡΠΎΠΊ
467 B
Austin Bonander
refactor(postgres): make better use of traits to improve protocol handling
24 Π°Π²Π³ 2024, 09:39
24 Π°Π²Π³ 2024, 09:39
53766e4
ΠΠΎΠ΄
ΠΠ²ΡΠΎΡΡΡΠ²ΠΎ
Π ΡΡΠΌ ΠΊΠΎΠ΄?
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(()) } }