| 1 | use bytesrust-analyzer cargo bytes 1.12.1 crate/::Bytesrust-analyzer cargo bytes 1.12.1 bytes/Bytes#; |
| 2 | |
| 3 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::errorrust-analyzer cargo sqlx-core 0.8.3 error/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#; |
| 4 | |
| 5 | pub trait ProtocolDecoderust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#<'de, Context = ()> |
| 6 | where |
| 7 | Self: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#, |
| 8 | { |
| 9 | fn decoderust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#decode().(buf: Bytesrust-analyzer cargo bytes 1.12.1 bytes/Bytes#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Self, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> |
| 10 | where |
| 11 | Self: ProtocolDecoderust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#<'de, ()>, |
| 12 | { |
| 13 | Self::decode_withrust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#decode_with().(buf, ()) |
| 14 | } |
| 15 | |
| 16 | fn decode_withrust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#decode_with().(buf: Bytesrust-analyzer cargo bytes 1.12.1 bytes/Bytes#, context: Context) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Self, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>; |
| 17 | } |
| 18 | |
| 19 | impl ProtocolDecoderust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#<'_> for Bytesrust-analyzer cargo bytes 1.12.1 bytes/Bytes# { |
| 20 | fn decode_withrust-analyzer cargo sqlx-core 0.8.3 io/decode/impl#[Bytes][`ProtocolDecode<'_, ()>`]decode_with().(buf: Bytesrust-analyzer cargo bytes 1.12.1 bytes/Bytes#, _: ()) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo sqlx-core 0.8.3 io/decode/impl#[Bytes][`ProtocolDecode<'_, ()>`], Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> { |
| 21 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(buf) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | impl ProtocolDecoderust-analyzer cargo sqlx-core 0.8.3 io/decode/ProtocolDecode#<'_> for () { |
| 26 | fn decode_withrust-analyzer cargo sqlx-core 0.8.3 io/decode/impl#[`()`][`ProtocolDecode<'_, Self>`]decode_with().(_: Bytesrust-analyzer cargo bytes 1.12.1 bytes/Bytes#, _: ()) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> { |
| 27 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 28 | } |
| 29 | } |