pub fn decode(buf: &mut BytesMut) -> Result<Option<BackendMessage>, Error>Expand description
Attempts to decode one backend message from buf with the default size
limit (DEFAULT_MAX_MESSAGE_LEN).
Returns Ok(None) when the buffer does not yet contain a full message.
ยงErrors
Returns Error::Decode when the message is malformed: an impossible
length, a truncated body, an unterminated string or an invalid count.