Skip to main content

ToBytesMap

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToBytesMap for BytesFrame

Source§

impl ToBytesMap for BytesFrame

Implementors§