[][src]Struct rato::util::RedisUtil

pub struct RedisUtil {}

Some of the Code copied from: https://github.com/tidwall/cache-server Copy right for copied code: Josh Baker @tidwall, MIT License

Methods

impl RedisUtil[src]

pub fn redcon_take_args(
    input: &[u8],
    ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
[src]

pub fn safe_line_from_string(s: &str) -> String[src]

pub fn safe_line_from_slice(s: &[u8]) -> String[src]

pub fn arg_match(arg: &[u8], what: &str) -> bool[src]

pub fn make_bulk(bulk: &[u8]) -> Vec<u8>[src]

pub fn make_array(count: usize) -> Vec<u8>[src]

pub fn invalid_num_args(cmd: &[u8]) -> Vec<u8>[src]

pub fn redcon_take_multibulk_args(
    input: &[u8],
    ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
[src]

pub fn redcon_take_inline_args(
    packet: &[u8],
    ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
[src]

Auto Trait Implementations

impl Send for RedisUtil

impl Sync for RedisUtil

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]