pub struct WsOptions {
pub announce_connects: bool,
pub reconnect_min: Duration,
pub reconnect_max: Duration,
}Expand description
How the session behaves.
Fields§
§announce_connects: boolTell the reader about every connection with WsIncoming::Connected.
reconnect_min: DurationThe first pause before a reconnect.
reconnect_max: DurationThe longest pause before a reconnect.
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