Struct diem_config::config::NetworkConfig [−][src]
pub struct NetworkConfig {Show 23 fields
pub max_connection_delay_ms: u64,
pub connection_backoff_base: u64,
pub connectivity_check_interval_ms: u64,
pub network_channel_size: usize,
pub max_concurrent_network_reqs: usize,
pub discovery_method: DiscoveryMethod,
pub discovery_methods: Vec<DiscoveryMethod>,
pub identity: Identity,
pub listen_address: NetworkAddress,
pub mutual_authentication: bool,
pub network_address_key_backend: Option<SecureBackend>,
pub network_id: NetworkId,
pub seed_addrs: HashMap<PeerId, Vec<NetworkAddress>>,
pub seeds: PeerSet,
pub max_frame_size: usize,
pub enable_proxy_protocol: bool,
pub ping_interval_ms: u64,
pub ping_timeout_ms: u64,
pub ping_failures_tolerated: u64,
pub max_outbound_connections: usize,
pub max_inbound_connections: usize,
pub inbound_rate_limit_config: Option<RateLimitConfig>,
pub outbound_rate_limit_config: Option<RateLimitConfig>,
}Fields
max_connection_delay_ms: u64connection_backoff_base: u64connectivity_check_interval_ms: u64network_channel_size: usizemax_concurrent_network_reqs: usizediscovery_method: DiscoveryMethoddiscovery_methods: Vec<DiscoveryMethod>identity: Identitylisten_address: NetworkAddressmutual_authentication: boolnetwork_address_key_backend: Option<SecureBackend>network_id: NetworkIdseed_addrs: HashMap<PeerId, Vec<NetworkAddress>>seeds: PeerSetmax_frame_size: usizeenable_proxy_protocol: boolping_interval_ms: u64ping_timeout_ms: u64ping_failures_tolerated: u64max_outbound_connections: usizemax_inbound_connections: usizeinbound_rate_limit_config: Option<RateLimitConfig>outbound_rate_limit_config: Option<RateLimitConfig>Implementations
Per convenience, so that NetworkId isn’t needed to be specified for validator_networks
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.