pub struct ServerConfig {Show 16 fields
pub listen: String,
pub fallback: String,
pub tcp_idle_timeout_secs: u64,
pub udp_timeout_secs: u64,
pub max_udp_payload: usize,
pub max_udp_buffer_bytes: usize,
pub max_header_bytes: usize,
pub max_connections: Option<usize>,
pub rate_limit: Option<RateLimitConfig>,
pub fallback_pool: Option<FallbackPoolConfig>,
pub resource_limits: Option<ResourceLimitsConfig>,
pub tcp: TcpConfig,
pub outbounds: HashMap<String, OutboundConfig>,
pub rule_providers: HashMap<String, RuleProviderConfig>,
pub rules: Vec<RouteRuleConfig>,
pub geoip: Option<GeoipConfig>,
}Fields§
§listen: String§fallback: String§tcp_idle_timeout_secs: u64§udp_timeout_secs: u64§max_udp_payload: usize§max_udp_buffer_bytes: usize§max_header_bytes: usize§max_connections: Option<usize>Maximum concurrent connections (None = unlimited)
rate_limit: Option<RateLimitConfig>Per-IP rate limiting configuration
fallback_pool: Option<FallbackPoolConfig>Fallback connection pool configuration
resource_limits: Option<ResourceLimitsConfig>Resource limits configuration
tcp: TcpConfigTCP socket options
outbounds: HashMap<String, OutboundConfig>Named outbound connectors for rule-based routing.
rule_providers: HashMap<String, RuleProviderConfig>Rule-set providers (local file or remote URL).
rules: Vec<RouteRuleConfig>Ordered routing rules (first match wins).
geoip: Option<GeoipConfig>GeoIP database configuration for rule-based routing.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 ServerConfig
impl Debug for ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
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 ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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