redis

Trait RedisWrite

Source
pub trait RedisWrite {
    // Required method
    fn write_arg(&mut self, arg: &[u8]);

    // Provided method
    fn write_arg_fmt(&mut self, arg: impl Display) { ... }
}
Expand description

Abstraction trait for redis command abstractions.

Required Methods§

Source

fn write_arg(&mut self, arg: &[u8])

Accepts a serialized redis command.

Provided Methods§

Source

fn write_arg_fmt(&mut self, arg: impl Display)

Accepts a serialized redis command.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RedisWrite for Vec<Vec<u8>>

Source§

fn write_arg(&mut self, arg: &[u8])

Source§

fn write_arg_fmt(&mut self, arg: impl Display)

Implementors§