redi-rs 0.1.0-alpha.0

Lightweight async Redis client with connection pooling written in pure Rust and 100% memory safe
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug)]
pub enum RedisError {
    SetupError(String),
    CommandError(String),
    ConnectionError(String),
}

impl std::fmt::Display for RedisError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            RedisError::SetupError(message) => write!(f, "SetupError: {}", message),
            RedisError::CommandError(message) => write!(f, "CommandError: {}", message),
            RedisError::ConnectionError(message) => write!(f, "ConnectionError: {}", message),
        }
    }
}

impl std::error::Error for RedisError {}