pub struct RocksDBStorageEngine { /* private fields */ }Expand description
RocksDB-based Raft log storage
High-performance storage engine using RocksDB for durability. Recommended for production deployments.
§Usage
ⓘ
use d_engine_server::RocksDBStorageEngine;
use std::path::PathBuf;
let engine = RocksDBStorageEngine::new(PathBuf::from("/tmp/raft-db"))?;§Features
- ACID transactions
- Compression support
- Configurable write options
- High write throughput
Implementations§
Trait Implementations§
Source§impl Debug for RocksDBStorageEngine
impl Debug for RocksDBStorageEngine
Source§impl StorageEngine for RocksDBStorageEngine
impl StorageEngine for RocksDBStorageEngine
Auto Trait Implementations§
impl Freeze for RocksDBStorageEngine
impl RefUnwindSafe for RocksDBStorageEngine
impl Send for RocksDBStorageEngine
impl Sync for RocksDBStorageEngine
impl Unpin for RocksDBStorageEngine
impl UnwindSafe for RocksDBStorageEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request