pub enum WsEvent {
Message(Box<ServerMessage>),
Reconnecting,
Disconnected(String),
}Expand description
Events delivered to the user from the managed WebSocket.
Variants§
Message(Box<ServerMessage>)
A message from the server.
Reconnecting
The connection was lost and a reconnect is in progress. Subscriptions will be replayed automatically.
Disconnected(String)
The connection was permanently lost after exhausting retries.
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 UnsafeUnpin 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