Trait ToBytesMap

Source
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 BytesFrame

Source§

impl ToBytesMap for BytesFrame

Implementors§