Skip to main content

FastCodesHeader

Trait FastCodesHeader 

Source
pub trait FastCodesHeader {
    // Required methods
    fn encode_fast(&mut self, out: &mut BytesMut);
    fn decode_fast(&mut self, fields: &HashMap<CheetahString, CheetahString>);

    // Provided method
    fn write_if_not_null(out: &mut BytesMut, key: &str, value: &str) { ... }
}
๐Ÿ‘ŽDeprecated:

use CommandCustomHeader typed map/direct-binary APIs

Expand description

Required Methodsยง

Source

fn encode_fast(&mut self, out: &mut BytesMut)

๐Ÿ‘ŽDeprecated:

use CommandCustomHeader typed map/direct-binary APIs

Source

fn decode_fast(&mut self, fields: &HashMap<CheetahString, CheetahString>)

๐Ÿ‘ŽDeprecated:

use CommandCustomHeader typed map/direct-binary APIs

Provided Methodsยง

Source

fn write_if_not_null(out: &mut BytesMut, key: &str, value: &str)

๐Ÿ‘ŽDeprecated:

use CommandCustomHeader typed map/direct-binary APIs

Dyn Compatibilityยง

This trait is not dyn compatible.

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

Implementorsยง