StorageEngine

Trait StorageEngine 

Source
pub trait StorageEngine:
    Send
    + Sync
    + 'static {
    type LogStore: LogStore;
    type MetaStore: MetaStore;

    // Required methods
    fn log_store(&self) -> Arc<Self::LogStore>;
    fn meta_store(&self) -> Arc<Self::MetaStore>;
}
Expand description

High-performance storage abstraction for Raft consensus

Design principles:

  • Zero-cost abstractions through static dispatch
  • Physical separation of log and metadata stores
  • Async-ready for I/O parallelism
  • Minimal interface for maximum performance

Required Associated Types§

Source

type LogStore: LogStore

Associated log store type

Source

type MetaStore: MetaStore

Associated metadata store type

Required Methods§

Source

fn log_store(&self) -> Arc<Self::LogStore>

Get log storage handle

Source

fn meta_store(&self) -> Arc<Self::MetaStore>

Get metadata storage handle

Implementors§