Struct jormungandr_lib::interfaces::config::node::Connection
source · pub struct Connection {
pub public_address: Multiaddr,
pub listen: Option<SocketAddr>,
pub max_connections: Option<u32>,
pub max_inbound_connections: Option<u32>,
pub allow_private_addresses: bool,
pub whitelist: Option<Vec<Multiaddr>>,
pub gossip_interval: Option<Duration>,
pub network_stuck_check: Option<Duration>,
pub dns_server_address: Option<SocketAddr>,
}
Expand description
Miscellaneous network configuration
Fields§
§public_address: Multiaddr
The public address to which other peers may connect to
listen: Option<SocketAddr>
Listen address.
max_connections: Option<u32>
§max_inbound_connections: Option<u32>
§allow_private_addresses: bool
Whether to allow non-public IP addresses in gossip
whitelist: Option<Vec<Multiaddr>>
contains addrs of nodes which we can accept fragments from
gossip_interval: Option<Duration>
interval to start gossiping with new nodes, changing the value will affect the bandwidth.
network_stuck_check: Option<Duration>
If no gossip has been received in the last interval, try to connect to nodes that were previously known to this node
dns_server_address: Option<SocketAddr>
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Connection
impl Debug for Connection
source§impl<'de> Deserialize<'de> for Connection
impl<'de> Deserialize<'de> for Connection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more