[−][src]Struct rato::util::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]
input: &[u8],
ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
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]
input: &[u8],
ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
pub fn redcon_take_inline_args(
packet: &[u8],
ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
[src]
packet: &[u8],
ni: usize
) -> (Vec<Vec<u8>>, String, usize, bool)
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,