Function redis_protocol::resp3::encode::complete::extend_encode
source · pub fn extend_encode(
buf: &mut BytesMut,
frame: &BytesFrame
) -> Result<usize, RedisProtocolError>Available on crate features
resp3 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.