Skip to main content

Module ids

Module ids 

Source
Expand description

Identifier and index newtypes shared by every simraft-core module.

All identifiers are plain u64 wrappers. They carry no behavior beyond ordering, formatting, and the small amount of arithmetic the protocol performs on terms and log indexes, so that raw integers never mix domains (a term is never silently used as an index).

Structs§

ClientId
Identifies one client session. Chosen by the client at session start.
LogIndex
A position in the replicated log. Index 0 is the sentinel empty entry; the first real entry is index 1.
NodeId
Identifies one node in the cluster.
Term
A Raft term: a monotonically increasing logical clock value.

Type Aliases§

Tick
A virtual time value in ticks, supplied by the driver.