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