pub enum WsClientStatus<P: Protocol> {
Connected {
sender: WsSender<P::ToServer>,
},
Failed {
reason: WsFailReason,
},
}
Expand description
The active status of a connection.
Variants§
Connected
Connected to a server.
Failed
Connection failed. The sender is not valid anymore.
Fields
§
reason: WsFailReason
The reason of failing.
Trait Implementations§
impl<P: Protocol> InstantAction for WsClientStatus<P>
Auto Trait Implementations§
impl<P> Freeze for WsClientStatus<P>
impl<P> !RefUnwindSafe for WsClientStatus<P>
impl<P> Send for WsClientStatus<P>
impl<P> Sync for WsClientStatus<P>
impl<P> Unpin for WsClientStatus<P>
impl<P> !UnwindSafe for WsClientStatus<P>
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