pub trait ToBytesMap {
    // Required method
    fn to_map(&self) -> Option<BTreeMap<Bytes, Bytes>>;
}
Expand description

Trait for converting RESP2 arrays or RESP3 maps

Required Methods§

source

fn to_map(&self) -> Option<BTreeMap<Bytes, Bytes>>

Converts the frame to map Returns None in case of protocol violation

Implementations on Foreign Types§

source§

impl ToBytesMap for Frame

source§

impl ToBytesMap for Frame

Implementors§