1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod sync;
pub mod asynchronous;

/// This type represent the result of a network operation
pub type NetworkResult<T> = Result<T, Box<dyn std::error::Error>>;

/// This enum represent the different update we will receive from the network
pub enum NetworkUpdate {
    /// No message received
    None,
    /// A message has been received
    Update { msg: String },
}