Module encode

Source
Available on crate feature resp2 only.
Expand description

Encoding functions for BytesMut and slices. Functions for encoding frames into the RESP2 protocol.

https://redis.io/topics/protocol#resp-protocol-description

Functionsยง

encode
Attempt to encode a frame into buf.
encode_borrowed
Attempt to encode a borrowed frame into buf.
encode_bytesbytes
Attempt to encode a frame into buf.
extend_encodebytes
Attempt to encode a frame at the end of buf, extending the buffer before encoding.
extend_encode_borrowedbytes
Attempt to encode a borrowed frame at the end of buf, extending the buffer before encoding.