pub struct VeilidConfigInternalNetwork {Show 13 fields
pub connection_initial_timeout_ms: u32,
pub connection_inactivity_timeout_ms: u32,
pub max_connections_per_ip4: u32,
pub max_connections_per_ip6_prefix: u32,
pub max_connections_per_ip6_prefix_size: u32,
pub max_connection_frequency_per_min: u32,
pub client_allowlist_timeout_ms: u32,
pub reverse_connection_receipt_time_ms: u32,
pub hole_punch_receipt_time_ms: u32,
pub restricted_nat_retries: u32,
pub rpc: VeilidConfigInternalRPC,
pub dht: VeilidConfigInternalDHT,
pub protocol: VeilidConfigInternalProtocol,
}Expand description
Internal “footgun” network configuration. See VeilidConfigInternal.
Fields§
§connection_initial_timeout_ms: u32Timeout to establish a new connection, in milliseconds.
connection_inactivity_timeout_ms: u32Idle time before an inactive connection is dropped, in milliseconds.
max_connections_per_ip4: u32Maximum simultaneous connections from a single IPv4 address.
max_connections_per_ip6_prefix: u32Maximum simultaneous connections from a single IPv6 prefix.
max_connections_per_ip6_prefix_size: u32IPv6 prefix length (bits) used to group connections for the per-prefix limit.
max_connection_frequency_per_min: u32Maximum new connections accepted per minute from one source.
client_allowlist_timeout_ms: u32Time a client stays on the allowlist after connecting, in milliseconds.
reverse_connection_receipt_time_ms: u32Time allowed to receive a reverse-connection receipt, in milliseconds.
hole_punch_receipt_time_ms: u32Time allowed to receive a hole-punch receipt, in milliseconds.
restricted_nat_retries: u32NAT-detection retries during dial-info confirmation for port/address-restricted NAT (some NATs open to full-cone after a few attempts; off by default).
rpc: VeilidConfigInternalRPCInternal RPC tuning.
dht: VeilidConfigInternalDHTInternal DHT tuning.
protocol: VeilidConfigInternalProtocolInternal per-protocol tuning.
Trait Implementations§
Source§impl Clone for VeilidConfigInternalNetwork
impl Clone for VeilidConfigInternalNetwork
Source§fn clone(&self) -> VeilidConfigInternalNetwork
fn clone(&self) -> VeilidConfigInternalNetwork
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VeilidConfigInternalNetwork
impl Debug for VeilidConfigInternalNetwork
Source§impl<'de> Deserialize<'de> for VeilidConfigInternalNetwork
impl<'de> Deserialize<'de> for VeilidConfigInternalNetwork
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>,
impl Eq for VeilidConfigInternalNetwork
impl StructuralPartialEq for VeilidConfigInternalNetwork
Auto Trait Implementations§
impl Freeze for VeilidConfigInternalNetwork
impl RefUnwindSafe for VeilidConfigInternalNetwork
impl Send for VeilidConfigInternalNetwork
impl Sync for VeilidConfigInternalNetwork
impl Unpin for VeilidConfigInternalNetwork
impl UnsafeUnpin for VeilidConfigInternalNetwork
impl UnwindSafe for VeilidConfigInternalNetwork
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more