shore-protocol 0.7.0

Shore Wire Protocol (SWP) message types and serialization for the Silvershore chat daemon.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

/// SWP error codes per ยง3.6.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum ErrorCode {
    ProtocolError,
    InvalidRequest,
    NotFound,
    Busy,
    ProviderError,
    Timeout,
    InternalError,
}