pub struct WsConfig {
pub ping_interval: Duration,
pub initial_backoff: Duration,
pub max_backoff: Duration,
pub channel_capacity: usize,
pub post_timeout: Duration,
}Expand description
Tunable WS configuration.
Fields§
§ping_interval: DurationHeartbeat interval. Default: 30 seconds.
initial_backoff: DurationInitial backoff after first disconnect. Default: 250 ms.
max_backoff: DurationCap on backoff between reconnect attempts. Default: 30 seconds.
channel_capacity: usizeCapacity of the inbound message broadcast channel. Default: 1024.
post_timeout: DurationHow long a post request waits for its correlated response before
failing with ClientError::WebSocket. Default: 10 seconds.
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