pub struct WebSocketConfig {
pub url: String,
pub api_key: Option<String>,
pub auto_reconnect: bool,
pub reconnect_delay_ms: u64,
pub max_reconnect_attempts: u32,
pub timeout_ms: u64,
}Expand description
Configuration for the Limitless WebSocket connection.
Fields§
§url: StringThe WebSocket endpoint URL.
api_key: Option<String>Optional API key / token ID for authenticated streams.
auto_reconnect: boolWhether to automatically reconnect on disconnection.
reconnect_delay_ms: u64Delay (in milliseconds) before each reconnection attempt.
max_reconnect_attempts: u32Maximum number of reconnection attempts (0 = unlimited).
timeout_ms: u64Connection and read timeout (in milliseconds).
Trait Implementations§
Source§impl Clone for WebSocketConfig
impl Clone for WebSocketConfig
Source§fn clone(&self) -> WebSocketConfig
fn clone(&self) -> WebSocketConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebSocketConfig
impl Debug for WebSocketConfig
Auto Trait Implementations§
impl Freeze for WebSocketConfig
impl RefUnwindSafe for WebSocketConfig
impl Send for WebSocketConfig
impl Sync for WebSocketConfig
impl Unpin for WebSocketConfig
impl UnsafeUnpin for WebSocketConfig
impl UnwindSafe for WebSocketConfig
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