Enum rants::ClientState [−][src]
Expand description
Client states
State Diagram
+--------+-----------------------------------------+
| | |
| v v
+----------------+ +---+--------+---+ +----------------+ +--------+-------+
| | | | | | | |
| Disconnected +---->+ Connecting +---->+ Connected +---->+ Disconnecting |
| | | | | | | |
+-------+--------+ +----------------+ +--------+-------+ +--------+-------+
^ | |
| | |
+----------------------------------------------+----------------------+
Variants
Connected(Address)
The client is connected to an address.
Tuple Fields of Connected
0: Address
Connecting(Address)
The client is connecting to an address.
Tuple Fields of Connecting
0: Address
The client is disconnected.
The client has been instructed to disconnect by calling
disconnect
.
Implementations
Is the state Connected
?
Is the state Connecting
?
Is the state Disconnected
?
Is the state Disconnecting
?
Trait Implementations
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
Mutably borrows from an owned value. Read more