tapaculo 1.5.0

Lightweight Rust server for real-time and turn-based multiplayer communication
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(feature = "redis-backend")]
use redis::RedisError;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum PubSubError {
  #[error("Serialization error: {0}")]
  Serialization(#[from] serde_json::Error),

  #[cfg(feature = "redis-backend")]
  #[error("Backend error: {0}")]
  Backend(#[from] RedisError),

  #[error("No active subscribers for topic '{0}'")]
  NoSubscribers(String),
}