pub enum WsState {
Disconnected,
Connecting,
Handshaking,
Connected,
ReconnectBackoff,
Closed,
}Variants§
Disconnected
Not connected. Awaiting connect() or auto-reconnect.
Connecting
TCP connection in progress.
Handshaking
WebSocket handshake in progress.
Connected
Fully connected and ready.
ReconnectBackoff
Waiting before reconnect attempt (backoff).
Closed
Intentionally closed, will not reconnect.
Implementations§
Trait Implementations§
impl Copy for WsState
impl Eq for WsState
impl StructuralPartialEq for WsState
Auto Trait Implementations§
impl Freeze for WsState
impl RefUnwindSafe for WsState
impl Send for WsState
impl Sync for WsState
impl Unpin for WsState
impl UnsafeUnpin for WsState
impl UnwindSafe for WsState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.