Available on crate feature
resp2
only.Expand description
Encoding functions for BytesMut
and slices.
Functions for encoding frames into the RESP2 protocol.
Functionsยง
- encode
- Attempt to encode a frame into
buf
. - encode_
borrowed - Attempt to encode a borrowed frame into
buf
. - encode_
bytes bytes
- Attempt to encode a frame into
buf
. - extend_
encode bytes
- Attempt to encode a frame at the end of
buf
, extending the buffer before encoding. - extend_
encode_ borrowed bytes
- Attempt to encode a borrowed frame at the end of
buf
, extending the buffer before encoding.