pub struct ConnectedUdpConfig {
pub enabled: bool,
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).
Environment overrides are still honored for operational A/B tests:
FIPS_CONNECTED_UDP, and on macOS FIPS_MACOS_CONNECTED_UDP.
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
node.limits.max_peers.
Trait Implementations§
Source§impl Clone for ConnectedUdpConfig
impl Clone for ConnectedUdpConfig
Source§fn clone(&self) -> ConnectedUdpConfig
fn clone(&self) -> ConnectedUdpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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