pub struct RouterConfig {
pub name: String,
pub features: Vec<String>,
pub max_sessions: usize,
pub session_timeout: u64,
pub security_mode: SecurityMode,
pub max_subscriptions_per_session: usize,
pub gesture_coalescing: bool,
pub gesture_coalesce_interval_ms: u64,
pub max_messages_per_second: u32,
pub rate_limiting_enabled: bool,
pub state_config: RouterStateConfig,
}Expand description
Router configuration
Fields§
§name: StringServer name
features: Vec<String>Supported features
max_sessions: usizeMaximum sessions
session_timeout: u64Session timeout (seconds)
security_mode: SecurityModeSecurity mode (Open or Authenticated)
max_subscriptions_per_session: usizeMaximum subscriptions per session (0 = unlimited)
gesture_coalescing: boolEnable gesture move coalescing (reduces bandwidth for high-frequency touch input)
gesture_coalesce_interval_ms: u64Gesture move coalesce interval in milliseconds (default: 16ms = 60fps)
max_messages_per_second: u32Maximum messages per second per client (0 = unlimited)
rate_limiting_enabled: boolEnable rate limiting
state_config: RouterStateConfigState store configuration (TTL, limits)
Trait Implementations§
Source§impl Clone for RouterConfig
impl Clone for RouterConfig
Source§fn clone(&self) -> RouterConfig
fn clone(&self) -> RouterConfig
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 RouterConfig
impl Debug for RouterConfig
Auto Trait Implementations§
impl Freeze for RouterConfig
impl RefUnwindSafe for RouterConfig
impl Send for RouterConfig
impl Sync for RouterConfig
impl Unpin for RouterConfig
impl UnsafeUnpin for RouterConfig
impl UnwindSafe for RouterConfig
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