pub fn close(buf: &mut BytesMut, kind: u8, name: &str) -> Result<(), Error>
Encodes a Close (kind is b'S' for a statement or b'P' for a portal).
Close
kind
b'S'
b'P'
Returns Error::Encode if the message is larger than 2 GiB.
Error::Encode