| 1 | use craterust-analyzer cargo sqlx-postgres 0.8.3 crate/::messagerust-analyzer cargo sqlx-postgres 0.8.3 message/::{FrontendMessagerust-analyzer cargo sqlx-postgres 0.8.3 message/FrontendMessage#, FrontendMessageFormatrust-analyzer cargo sqlx-postgres 0.8.3 message/FrontendMessageFormat#}; |
| 2 | use sqlx_corerust-analyzer cargo sqlx-core 0.8.3 crate/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#; |
| 3 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::numrust-analyzer cargo std https://github.com/rust-lang/rust/library/std num/::Saturatingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/saturating/Saturating#; |
| 4 | |
| 5 | /// The Flush message does not cause any specific output to be generated, |
| 6 | /// but forces the backend to deliver any data pending in its output buffers. |
| 7 | /// |
| 8 | /// A Flush must be sent after any extended-query command except Sync, if the |
| 9 | /// frontend wishes to examine the results of that command before issuing more commands. |
| 10 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 11 | pub struct Flushrust-analyzer cargo sqlx-postgres 0.8.3 message/flush/Flush#; |
| 12 | |
| 13 | impl FrontendMessagerust-analyzer cargo sqlx-postgres 0.8.3 message/FrontendMessage# for Flushrust-analyzer cargo sqlx-postgres 0.8.3 message/flush/Flush# { |
| 14 | const FORMATrust-analyzer cargo sqlx-postgres 0.8.3 message/flush/impl#[Flush][FrontendMessage]FORMAT.: FrontendMessageFormatrust-analyzer cargo sqlx-postgres 0.8.3 message/FrontendMessageFormat# = FrontendMessageFormatrust-analyzer cargo sqlx-postgres 0.8.3 message/FrontendMessageFormat#::Flushrust-analyzer cargo sqlx-postgres 0.8.3 message/FrontendMessageFormat#Flush#; |
| 15 | |
| 16 | #[inline(always)] |
| 17 | fn body_size_hintrust-analyzer cargo sqlx-postgres 0.8.3 message/flush/impl#[Flush][FrontendMessage]body_size_hint().(&self) -> Saturatingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/saturating/Saturating#<usize> { |
| 18 | Saturatingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/saturating/Saturating#(0) |
| 19 | } |
| 20 | |
| 21 | #[inline(always)] |
| 22 | fn encode_bodyrust-analyzer cargo sqlx-postgres 0.8.3 message/flush/impl#[Flush][FrontendMessage]encode_body().(&self, _buf: &mut Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> { |
| 23 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 24 | } |
| 25 | } |