litellm/litellm-rust/crates/redis-testing/src/error.rs
yujonglee 6edbd27f74
feat(rust): add redis-client crate for standalone Redis (#48269)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-26 18:41:46 -07:00

11 lines
386 B
Rust

use std::io;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("reserving a host port for the Redis container")]
Port(#[source] io::Error),
#[error("Redis on host port {port} did not answer PING")]
Unreachable { port: u16 },
#[error("controlling the Redis container")]
Container(#[from] testcontainers_modules::testcontainers::TestcontainersError),
}