pub struct WSClientConfig {
pub channel_capacity: usize,
pub connection_timeout: Duration,
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay: Duration,
}Expand description
Configuration for WebSocketClient
Fields§
§channel_capacity: usizeChannel capacity for message queues
connection_timeout: DurationConnection timeout in seconds
auto_reconnect: boolWhether to automatically reconnect on connection failure
max_reconnect_attempts: u32Maximum reconnection attempts
reconnect_delay: DurationDelay between reconnection attempts
Trait Implementations§
Source§impl Clone for WSClientConfig
impl Clone for WSClientConfig
Source§fn clone(&self) -> WSClientConfig
fn clone(&self) -> WSClientConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WSClientConfig
impl Debug for WSClientConfig
Auto Trait Implementations§
impl Freeze for WSClientConfig
impl RefUnwindSafe for WSClientConfig
impl Send for WSClientConfig
impl Sync for WSClientConfig
impl Unpin for WSClientConfig
impl UnwindSafe for WSClientConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)