pub struct TransportConfig {
pub type: String,
pub listen_port: u16,
pub max_reconnect_attempts: u32,
pub connect_timeout_ms: u64,
pub peer_cleanup: PeerCleanupConfig,
}Expand description
Wire transport configuration for direct peer connections.
Fields§
§type: StringTransport backend name, currently tcp.
listen_port: u16Local port the transport listens on for inbound peer connections.
max_reconnect_attempts: u32Maximum reconnect attempts per peer before giving up.
connect_timeout_ms: u64Timeout for outbound TCP connect attempts in milliseconds.
peer_cleanup: PeerCleanupConfigPeriodic cleanup of ReconnectManager.discovered_targets —
see PeerCleanupConfig. Discovered targets are
(NodeId, ConnectTarget) pairs accumulated as the daemon
learns peers from various discovery sources; without
cleanup the set grows monotonically. Ephemeral defaults
(7 days / 1 h).
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
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 TransportConfig
impl Debug for TransportConfig
Source§impl Default for TransportConfig
impl Default for TransportConfig
Source§impl<'de> Deserialize<'de> for TransportConfig
impl<'de> Deserialize<'de> for TransportConfig
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
Source§impl PartialEq for TransportConfig
impl PartialEq for TransportConfig
Source§fn eq(&self, other: &TransportConfig) -> bool
fn eq(&self, other: &TransportConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransportConfig
impl Serialize for TransportConfig
impl StructuralPartialEq for TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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