pub fn terminate(buf: &mut BytesMut) -> Result<(), Error>
Encodes a Terminate.
Terminate
Returns Error::Encode if the message is larger than 2 GiB.
Error::Encode