pub struct WsOptions {
pub announce_connects: bool,
pub reconnect_min: Duration,
pub reconnect_max: Duration,
}Expand description
Options of a WsSession.
Fields§
§announce_connects: boolPut WsIncoming::Reconnected into the stream at every connect, before the data of the restored
subscriptions. The connector uses it to see a lost connection.
reconnect_min: DurationPause before the first reconnect, doubling up to reconnect_max.
reconnect_max: DurationUpper bound of the pause.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsOptions
impl RefUnwindSafe for WsOptions
impl Send for WsOptions
impl Sync for WsOptions
impl Unpin for WsOptions
impl UnsafeUnpin for WsOptions
impl UnwindSafe for WsOptions
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