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§
- Local
KvClient - Zero-overhead KV client for embedded mode.
- Node
- Raft consensus node
- Node
Builder - Builder for creating a Raft node
- Raft
Type Config
Enums§
- Local
Client Error - Local client error types