relay_cardinality/
error.rs

1use relay_redis::RedisError;
2
3/// Result type for the cardinality module, using [`Error`] as the default error type.
4pub type Result<T, E = Error> = std::result::Result<T, E>;
5
6/// Error for the cardinality module.
7#[derive(Debug, thiserror::Error)]
8pub enum Error {
9    /// Something went wrong with Redis.
10    #[error("failed to talk to redis: {0}")]
11    RedisError(#[from] RedisError),
12}