Function redis_protocol::resp3::encode::streaming::extend_while_encoding[][src]

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

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