Enum dbs_upcall::UpcallClientState
source · pub enum UpcallClientState {
WaitingServer,
WaitingService,
ServiceConnected,
ServiceBusy,
ReconnectError,
}
Expand description
Upcall client state, used by upcall client state machine.
Variants§
WaitingServer
There are two possible scenarios for a connection in this state:
- Server’s connection is broken, waiting for reconnect.
- Server connection request sent, waiting for server’s response.
WaitingService
Service connection request sent, waiting for service’s response.
ServiceConnected
The upcall service is connected.
ServiceBusy
The upcall channl is busy (request has been sent, but response has not been received).
ReconnectError
Error state that cannot just reconnect to server.
Trait Implementations§
source§impl Clone for UpcallClientState
impl Clone for UpcallClientState
source§fn clone(&self) -> UpcallClientState
fn clone(&self) -> UpcallClientState
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 UpcallClientState
impl Debug for UpcallClientState
source§impl PartialEq<UpcallClientState> for UpcallClientState
impl PartialEq<UpcallClientState> for UpcallClientState
source§fn eq(&self, other: &UpcallClientState) -> bool
fn eq(&self, other: &UpcallClientState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.