engawa-client 0.0.2

CLI chat client for Engawa, chat application built with Axum and WebSocket.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error types for the WebSocket chat application.

use thiserror::Error;

/// Client-specific errors
#[derive(Debug, Error)]
pub enum ClientError {
    /// Client ID is already in use
    #[error("Client ID '{0}' is already connected")]
    DuplicateClientId(String),

    /// Connection error
    #[error("Connection error: {0}")]
    ConnectionError(String),
}