hydra 0.1.40

A framework for writing fault tolerant, highly scalable applications with the Rust programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Deserialize;
use serde::Serialize;

/// The different states a node can be in.
#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
pub enum NodeState {
    /// This node is the local node.
    Current,
    /// This node information was given to us, but no attempt to connect has been made.
    Known,
    /// This node is currently connected.
    Connected,
    /// This node is pending a connection.
    Pending,
}