rf_distributed/network.rs
1pub mod asynchronous;
2pub mod sync;
3
4/// This type represent the result of a network operation
5pub type NetworkResult<T> = Result<T, Box<dyn std::error::Error>>;
6
7/// This enum represent the different update we will receive from the network
8pub enum NetworkUpdate {
9 /// No message received
10 None,
11 /// A message has been received
12 Update { msg: String },
13}