ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
consensus_state Struct Reference

State machine instance. More...

Data Fields

consensus_state_machine_t current_state
 
consensus_topology_ttopology
 
uint8_t my_id [16]
 
participant_metrics_t * metrics
 
int metrics_count
 
int metrics_capacity
 
election_result_t election_result
 

Detailed Description

State machine instance.

Definition at line 24 of file state.c.

Field Documentation

◆ current_state

◆ election_result

◆ metrics

participant_metrics_t* consensus_state::metrics

◆ metrics_capacity

int consensus_state::metrics_capacity

Allocated capacity

Definition at line 32 of file state.c.

Referenced by consensus_state_add_metrics(), and consensus_state_create().

◆ metrics_count

◆ my_id

uint8_t consensus_state::my_id[16]

My participant ID

Definition at line 27 of file state.c.

Referenced by consensus_state_create().

◆ topology

consensus_topology_t* consensus_state::topology

Topology (not owned)

Definition at line 26 of file state.c.

Referenced by consensus_state_collection_complete(), consensus_state_create(), and consensus_state_is_leader().


The documentation for this struct was generated from the following file: