pub struct WsConfig {
pub enabled: bool,
pub interaction_timeout_seconds: u64,
pub max_connections: usize,
pub database_url: Option<String>,
}Expand description
WebSocket configuration for bidirectional user↔agent communication.
Fields§
§enabled: boolWhether WebSocket endpoint is enabled. Defaults to true.
interaction_timeout_seconds: u64Timeout in seconds for blocking interactions (approval, input, question). Defaults to 120 seconds.
max_connections: usizeMaximum concurrent WebSocket connections. Defaults to 100.
database_url: Option<String>PostgreSQL URL for durable session persistence. When absent, sessions are stored in-memory (lost on restart).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsConfig
impl<'de> Deserialize<'de> for WsConfig
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 WsConfig
impl RefUnwindSafe for WsConfig
impl Send for WsConfig
impl Sync for WsConfig
impl Unpin for WsConfig
impl UnsafeUnpin for WsConfig
impl UnwindSafe for WsConfig
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