pub struct WsConfig {
pub reconnect_attempts: u32,
pub reconnect_delay: Duration,
pub message_timeout: Duration,
pub max_messages_per_prompt: usize,
pub max_total_messages: usize,
}Expand description
WebSocket connection configuration for recovery and limits.
Fields§
§reconnect_attempts: u32Number of reconnection attempts before falling back to polling (default: 3).
reconnect_delay: DurationDelay between reconnection attempts (default: 1s).
message_timeout: DurationTimeout for receiving a WebSocket message (default: 30s).
max_messages_per_prompt: usizeMaximum messages for the tracked prompt before fallback (default: 10,000).
max_total_messages: usizeMaximum total messages before fallback (default: 50,000).
Trait Implementations§
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