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

Method parse_error

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

Source from the content-addressed store, hash-verified

130 #[cold]
131 #[inline(never)]
132 pub(super) fn parse_error(&mut self) -> Error {
133 match backend::Message::parse(&mut self.buf) {
134 Err(e) => Error::from(e),
135 Ok(Some(backend::Message::ErrorResponse(body))) => Error::db(body.fields()),
136 _ => Error::unexpected(),
137 }
138 }
139}
140
141pub(super) enum ResponseMessage {

Callers 1

try_decodeMethod · 0.80

Calls 1

fieldsMethod · 0.80

Tested by

no test coverage detected