reception 0.1.2

A Rust library for creating TCP listeners that spawns clients providing model abstraction layer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

use super::{connection_status::ConnectionStatus, handle_status::HandleStatus};

#[derive(Error, Debug)]
pub(crate) enum SharedStateError {
    #[error("connection failed to share a new status update with the handle. Status: '{}'", .0)]
    ConnectionFailedToShareUpdate(ConnectionStatus),

    #[error("handle failed to share a new status update with the connection. Status: '{}'", .0)]
    HandleFailedToShareUpdate(HandleStatus),
}