Module simple_raft::message[][src]

Expand description

Raft message types for sending between nodes.

This module provides data types for messages to be sent between Raft nodes. The top-level message type is RaftMessage. Protobuf-based serialization of all types in this module is provided through the prost crate if the corresponding feature is enabled.

Structs

A request to append entries to a Raft node’s log.

The response to an AppendRequest allowing or denying an append to the Raft node’s log.

An entry in a Raft log.

A 1-based index into a Raft log.

A message sent between Raft nodes.

A RaftMessage to be sent to a destination.

The unique, monotonically-increasing ID for a term of Raft group leadership.

A request to obtain leadership amongst Raft nodes.

The response to a VoteRequest granting or denying leadership.

Enums

The destination for a SendableRaftMessage.

A Remote Procedure Call message to a Raft node.