pub fn new_initial(id: NodeId) -> Self {
        Self {
            last_log_id: LogId { term: 0, index: 0 },
            last_applied_log: LogId { term: 0, index: 0 },
            hard_state: HardState {
                current_term: 0,
                voted_for: None,
            },
            membership: MembershipConfig::new_initial(id),
        }
    }
/// Create a new instance for a pristine Raft node.
///
/// ### `id`
/// The ID of the Raft node.
Create a new instance for a pristine Raft node.
Create a new instance for a pristine Raft node .
pub fn new_initial(id: NodeId) -> Self {
        Self {
            last_log_id: LogId { term: 0, index: 0 },
            last_applied_log: LogId { term: 0, index: 0 },
            hard_state: HardState {
                current_term: 0,
                voted_for: None,
            },
            membership: MembershipConfig::new_initial(id),
        }
    }
pub fn new_initial ( id : NodeId ) -> Self { Self { last_log_id : LogId { term : 0 , index : 0 } , last_applied_log : LogId { term : 0 , index : 0 } , hard_state : HardState { current_term : 0 , voted_for : None , } , membership : MembershipConfig :: new_initial ( id ) , } }
Create a new instance for a pristine Raft node.
Create a new instance for a pristine Raft node .
id
NodeId
id
NodeId
`id`
The ID of the Raft node.
The ID of the Raft node .