Enum medea_jason::rpc::websocket::ClientState
source · pub enum ClientState {
Connecting,
Open,
Closed(ClosedStateReason),
}
Expand description
State of a WebSocketRpcClient
and a platform::RpcTransport
.
Variants§
Connecting
WebSocketRpcClient
is currently establishing a connection to RPC
server.
Open
Connection with RPC Server is active.
Closed(ClosedStateReason)
Connection with RPC server is currently closed.
Trait Implementations§
source§impl Clone for ClientState
impl Clone for ClientState
source§fn clone(&self) -> ClientState
fn clone(&self) -> ClientState
Returns a copy 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 ClientState
impl Debug for ClientState
source§impl PartialEq<ClientState> for ClientState
impl PartialEq<ClientState> for ClientState
source§fn eq(&self, other: &ClientState) -> bool
fn eq(&self, other: &ClientState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClientState
Auto Trait Implementations§
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