use std::time::Duration; #[derive(Debug, Clone)] pub struct RtrServiceConfig { pub max_connections: usize, pub max_concurrent_handshakes: usize, pub notify_queue_size: usize, pub tcp_keepalive: Option, pub warn_insecure_tcp: bool, pub require_tls_server_dns_name_san: bool, pub enforce_tls_client_san_ip_match: bool, } impl Default for RtrServiceConfig { fn default() -> Self { Self { max_connections: 1024, max_concurrent_handshakes: 128, notify_queue_size: 1024, tcp_keepalive: Some(Duration::from_secs(60)), warn_insecure_tcp: true, require_tls_server_dns_name_san: false, enforce_tls_client_san_ip_match: true, } } }