Function extend_while_encoding

Source
pub fn extend_while_encoding<F>(
    buf: &mut BytesMut,
    func: F,
) -> Result<usize, RedisProtocolError>
Expand description

A wrapper function for automatically extending the input buffer while encoding frames with a different encoding function.