xapi-shared 0.0.1

XAPI Shared Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use governor::InsufficientCapacity;

#[derive(Debug, thiserror::Error)]
pub enum SharedWsError {
    #[error("ratelimiter error: {0}")]
    RatelimiterError(#[from] InsufficientCapacity),
    #[error("Connection error: {0}")]
    ConnectionError(String),
    #[error("serde error: {0}")]
    SerdeError(String),
    #[error("channel closed error: {0}")]
    ChannelClosedError(String),
    #[error("invalid id error: {0:?}")]
    InvalidIdError(String),
    #[error("application error: {0}")]
    AppError(String),
}