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§
Required Methods§
Sourcefn meta_store(&self) -> Arc<Self::MetaStore>
fn meta_store(&self) -> Arc<Self::MetaStore>
Get metadata storage handle
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".