pub enum WsConnectionState {
Disconnected,
Connecting,
Connected,
Reconnecting,
Error,
}Expand description
WebSocket connection state.
Variants§
Disconnected
Not connected
Connecting
Establishing connection
Connected
Successfully connected
Reconnecting
Attempting to reconnect
Error
Error state
Trait Implementations§
Source§impl Clone for WsConnectionState
impl Clone for WsConnectionState
Source§fn clone(&self) -> WsConnectionState
fn clone(&self) -> WsConnectionState
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 WsConnectionState
impl Debug for WsConnectionState
Source§impl PartialEq for WsConnectionState
impl PartialEq for WsConnectionState
impl Copy for WsConnectionState
impl Eq for WsConnectionState
impl StructuralPartialEq for WsConnectionState
Auto Trait Implementations§
impl Freeze for WsConnectionState
impl RefUnwindSafe for WsConnectionState
impl Send for WsConnectionState
impl Sync for WsConnectionState
impl Unpin for WsConnectionState
impl UnwindSafe for WsConnectionState
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