Skip to main content

ToStringBytes

Trait ToStringBytes 

Source
pub trait ToStringBytes {
    // Required method
    fn to_string_bytes(&self) -> Option<Bytes>;
}
Expand description

Trait for string extraction of RESP2/3 frames

Required Methods§

Source

fn to_string_bytes(&self) -> Option<Bytes>

Extracts Bytes of Bulk (RESP2) or BLOB (RESP3) frames None if frame was not Bulk/BLOB string

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToStringBytes for BytesFrame

Source§

impl ToStringBytes for BytesFrame

Implementors§