Modules§
Structs§
- Leader
Value - The value of the leader. It is used to store the leader’s address.
- Metasrv
Node Info
Enums§
- Leader
Change Message - Messages sent when the leader changes.
Constants§
Traits§
- Election
- Leader
Key - LeaderKey is a key that represents the leader of metasrv. The structure is corresponding to [etcd_client::LeaderKey].
Functions§
- listen_
leader_ 🔒change - send_
leader_ 🔒change_ and_ set_ flags - Sends a leader change message to the channel and sets the
is_leaderflag. If a leader is elected, it will also set theleader_infancyflag to true.