pub struct PassiveConfig {
pub primary_addr: String,
pub node_id: String,
pub reconnect_delay_ms: u64,
pub heartbeat_config: HeartbeatConfig,
pub tls_config: Option<ReplicationTlsConfig>,
pub tls_server_name: Option<String>,
}Expand description
Configuration for the passive receiver
Fields§
§primary_addr: StringAddress of the primary node
node_id: StringNode identifier
reconnect_delay_ms: u64Reconnect delay on connection failure (milliseconds)
heartbeat_config: HeartbeatConfigHeartbeat configuration
tls_config: Option<ReplicationTlsConfig>Optional TLS configuration for mTLS
tls_server_name: Option<String>Server name for TLS verification (e.g., “primary.nklave.local”)
Trait Implementations§
Source§impl Clone for PassiveConfig
impl Clone for PassiveConfig
Source§fn clone(&self) -> PassiveConfig
fn clone(&self) -> PassiveConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PassiveConfig
impl Debug for PassiveConfig
Auto Trait Implementations§
impl Freeze for PassiveConfig
impl RefUnwindSafe for PassiveConfig
impl Send for PassiveConfig
impl Sync for PassiveConfig
impl Unpin for PassiveConfig
impl UnwindSafe for PassiveConfig
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