xstack 0.2.17

libp2p stack rewritten from ground up for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// A variant for [*autonat protocol*](https://github.com/libp2p/specs/tree/master/autonat) state.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum AutoNAT {
    /// the node is a public node.
    Public,
    /// the node is behind  nat/firewall.
    NAT,
    /// Cannot determine if the node is behind nat/firewall
    Unknown,
}

impl Default for AutoNAT {
    fn default() -> Self {
        Self::Unknown
    }
}