ruvector_raft - Rust
Skip to main content

Crate ruvector_raft

Crate ruvector_raft 

Source
Expand description

Raft consensus implementation for ruvector distributed metadata

This crate provides a production-ready Raft consensus implementation following the Raft paper specification for managing distributed metadata in the ruvector vector database.

Re-exports§

pub use node::RaftNode;
pub use node::RaftNodeConfig;
pub use rpc::AppendEntriesRequest;
pub use rpc::AppendEntriesResponse;
pub use rpc::InstallSnapshotRequest;
pub use rpc::InstallSnapshotResponse;
pub use rpc::RequestVoteRequest;
pub use rpc::RequestVoteResponse;
pub use state::LeaderState;
pub use state::PersistentState;
pub use state::RaftState;
pub use state::VolatileState;

Modules§

election
Leader election implementation
log
Raft log implementation
node
Raft node implementation
rpc
Raft RPC messages
state
Raft state management

Enums§

RaftError
Errors that can occur during Raft operations

Type Aliases§

LogIndex
Log index in Raft log
NodeId
Node identifier type
RaftResult
Result type for Raft operations
Term
Term number in Raft consensus
","&mut Vec":"

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A>
where\n A: Allocator,
","Drain<'_>":"

Notable traits for Drain<'_>

impl Iterator for Drain<'_>
type Item = char;
","IntoChars":"

Notable traits for IntoChars

type Item = char;
","IntoIter":"

Notable traits for IntoIter<T>

impl<T> Iterator for IntoIter<T>
type Item = T;
","Iter<'_, T>":"

Notable traits for Iter<'a, T>

impl<'a, T> Iterator for Iter<'a, T>
type Item = &'a T;
","IterMut<'_, T>":"

Notable traits for IterMut<'a, T>

impl<'a, T> Iterator for IterMut<'a, T>
type Item = &'a mut T;
","Vec":"

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A>
where\n A: Allocator,
"}