MCPcopy Create free account
hub / github.com/HFQR/xitca-web / parse_message

Method parse_message

postgres/src/driver/codec.rs:103–108  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

101 }
102
103 fn parse_message(&mut self) -> Result<backend::Message, Error> {
104 match backend::Message::parse(&mut self.buf)?.expect("must not parse message from empty buffer.") {
105 backend::Message::ErrorResponse(body) => Err(Error::db(body.fields())),
106 msg => Ok(msg),
107 }
108 }
109}
110
111// Extract the number of rows affected.

Callers 2

blocking_recvMethod · 0.80
poll_recvMethod · 0.80

Calls 1

fieldsMethod · 0.80

Tested by

no test coverage detected