Module node

Module node 

Source
Expand description

Node lifecycle management

Contains Node and NodeBuilder for server setup. Raft node container and lifecycle management.

The Node struct acts as a host for a Raft consensus participant, coordinating between the core protocol implementation (provided by d-engine-core) and external subsystems:

§Key Responsibilities

  • Manages the Raft finite state machine lifecycle
  • Maintains node readiness state for cluster coordination
  • Executes the main event processing loop inside Raft

§Example Usage

let node = NodeBuilder::new(node_config).start().await?;
tokio::spawn(async move {
    node.run().await.expect("Raft node execution failed");
});

Structs§

LocalKvClient
Zero-overhead KV client for embedded mode.
Node
Raft consensus node
NodeBuilder
Builder for creating a Raft node
RaftTypeConfig

Enums§

LocalClientError
Local client error types