pub struct WebSocketClientConfig {
pub url: String,
pub reconnect_attempts: u32,
pub heartbeat_interval: Duration,
pub message_timeout: Duration,
pub connection_timeout: Duration,
pub retry_delay: Duration,
}Expand description
Configuration for WebSocket client
Fields§
§url: String§reconnect_attempts: u32§heartbeat_interval: Duration§message_timeout: Duration§connection_timeout: Duration§retry_delay: DurationTrait Implementations§
Source§impl Clone for WebSocketClientConfig
impl Clone for WebSocketClientConfig
Source§fn clone(&self) -> WebSocketClientConfig
fn clone(&self) -> WebSocketClientConfig
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 WebSocketClientConfig
impl Debug for WebSocketClientConfig
Source§impl Default for WebSocketClientConfig
impl Default for WebSocketClientConfig
Source§impl<'de> Deserialize<'de> for WebSocketClientConfig
impl<'de> Deserialize<'de> for WebSocketClientConfig
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 WebSocketClientConfig
impl RefUnwindSafe for WebSocketClientConfig
impl Send for WebSocketClientConfig
impl Sync for WebSocketClientConfig
impl Unpin for WebSocketClientConfig
impl UnwindSafe for WebSocketClientConfig
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