pub enum WsEvent {
Connected,
Disconnected,
Reconnecting {
attempt: u32,
},
ReconnectSuccess,
ReconnectFailed {
error: String,
},
SubscriptionRestored,
}Expand description
WebSocket connection event types.
Variants§
Connected
Connection established successfully
Disconnected
Connection closed
Reconnecting
Reconnection in progress
ReconnectSuccess
Reconnection succeeded
ReconnectFailed
Reconnection failed
SubscriptionRestored
Subscriptions restored after reconnection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsEvent
impl RefUnwindSafe for WsEvent
impl Send for WsEvent
impl Sync for WsEvent
impl Unpin for WsEvent
impl UnwindSafe for WsEvent
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