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_id: NetworkId, pub runtime_threads: Option<usize>, 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_id: NetworkIdruntime_threads: Option<usize>seed_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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Generates a hash used only for tests.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more