pub struct ConnectedUdpConfig {
pub enabled: bool,
pub max_peers: usize,
pub fd_reserve: usize,
}Expand description
Connected UDP fast-path configuration (node.connected_udp.*).
Fields§
§enabled: boolEnable per-peer connected UDP sockets (node.connected_udp.enabled).
FIPS_CONNECTED_UDP remains honored for operational A/B tests. The
old macOS-specific FIPS_MACOS_CONNECTED_UDP=0 no longer disables the
default fast path, but =1 is still accepted as an enable-only legacy
override.
max_peers: usizeMaximum peers that may have connected UDP sockets installed
(node.connected_udp.max_peers).
This is an explicit escape hatch for large meshes while connected UDP
still uses one receive-drain thread per installed peer. Set to 0 to
disable the explicit cap and rely only on the fd budget and
node.limits.max_peers.
fd_reserve: usizeNumber of process file descriptors to leave for non-connected-UDP use
(node.connected_udp.fd_reserve).
This is headroom, not a peer cap. Connected UDP uses three FDs per
installed peer, so the effective fast-path peer budget is roughly
(RLIMIT_NOFILE - fd_reserve) / 3, also bounded by max_peers when
non-zero and by node.limits.max_peers.
Trait Implementations§
Source§impl Clone for ConnectedUdpConfig
impl Clone for ConnectedUdpConfig
Source§fn clone(&self) -> ConnectedUdpConfig
fn clone(&self) -> ConnectedUdpConfig
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 ConnectedUdpConfig
impl Debug for ConnectedUdpConfig
Source§impl Default for ConnectedUdpConfig
impl Default for ConnectedUdpConfig
Source§impl<'de> Deserialize<'de> for ConnectedUdpConfig
impl<'de> Deserialize<'de> for ConnectedUdpConfig
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>,
Auto Trait Implementations§
impl Freeze for ConnectedUdpConfig
impl RefUnwindSafe for ConnectedUdpConfig
impl Send for ConnectedUdpConfig
impl Sync for ConnectedUdpConfig
impl Unpin for ConnectedUdpConfig
impl UnsafeUnpin for ConnectedUdpConfig
impl UnwindSafe for ConnectedUdpConfig
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
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<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