Module redis_protocol::resp2::encode
source · Available on crate feature
resp2 only.Expand description
Encoding functions for BytesMut and slices.
Functions for encoding frames into the RESP2 protocol.
Functions§
- Attempt to encode a frame into
buf. - encode_bytes
bytesAttempt to encode a frame intobuf. - extend_encode
bytesAttempt to encode a frame at the end ofbuf, extending the buffer before encoding.