Function redis_protocol::resp2::encode::extend_encode
source · pub fn extend_encode(
buf: &mut BytesMut,
frame: &BytesFrame
) -> Result<usize, RedisProtocolError>Available on crate features
resp2 and bytes only.Expand description
Attempt to encode a frame at the end of buf, extending the buffer before encoding.
Returns the number of bytes encoded.