pub enum ClientState {
NoEventLoop,
Running,
Disconnected(Result<(), WampError>),
}Expand description
All the states a client can be in
Variants§
NoEventLoop
The event loop hasnt been spawned yet
Running
Currently running and connected to a server
Disconnected(Result<(), WampError>)
Disconnected from a server
Auto Trait Implementations§
impl Freeze for ClientState
impl RefUnwindSafe for ClientState
impl Send for ClientState
impl Sync for ClientState
impl Unpin for ClientState
impl UnwindSafe for ClientState
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