pub trait NetworkZone:
Clone
+ Copy
+ Send
+ 'static {
type Addr: NetZoneAddress;
const NAME: &'static str;
const CHECK_NODE_ID: bool;
const BROADCAST_OWN_ADDR: bool;
}
Expand description
An abstraction over a network zone (tor/i2p/clear)
Required Associated Constants§
Sourceconst CHECK_NODE_ID: bool
const CHECK_NODE_ID: bool
Check if our node ID matches the incoming peers node ID for this network.
This has privacy implications on an anonymity network if true so should be set to false.
Sourceconst BROADCAST_OWN_ADDR: bool
const BROADCAST_OWN_ADDR: bool
If true
, this network zone requires us to blend our own address and port into
the address book we plan on sharing to other peers.
Required Associated Types§
Sourcetype Addr: NetZoneAddress
type Addr: NetZoneAddress
The address type of this network.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.