pub struct FileStorageEngine { /* private fields */ }Expand description
File-based Raft log storage
Stores log entries as individual files in a directory.
§Usage
ⓘ
use d_engine_server::FileStorageEngine;
use std::path::PathBuf;
let engine = FileStorageEngine::new(PathBuf::from("/tmp/log"))?;§Performance
Suitable for development and testing. For production, consider using RocksDB storage engine
via the rocksdb feature.
Implementations§
Trait Implementations§
Source§impl Debug for FileStorageEngine
impl Debug for FileStorageEngine
Source§impl StorageEngine for FileStorageEngine
impl StorageEngine for FileStorageEngine
Auto Trait Implementations§
impl Freeze for FileStorageEngine
impl RefUnwindSafe for FileStorageEngine
impl Send for FileStorageEngine
impl Sync for FileStorageEngine
impl Unpin for FileStorageEngine
impl UnwindSafe for FileStorageEngine
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