pub struct RocksDBLogStore { /* private fields */ }Expand description
RocksDB-based log store implementation
Trait Implementations§
Source§impl Debug for RocksDBLogStore
impl Debug for RocksDBLogStore
Source§impl Drop for RocksDBLogStore
impl Drop for RocksDBLogStore
Source§impl LogStore for RocksDBLogStore
impl LogStore for RocksDBLogStore
Source§fn persist_entries<'life0, 'async_trait>(
&'life0 self,
entries: Vec<Entry>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
fn persist_entries<'life0, 'async_trait>(
&'life0 self,
entries: Vec<Entry>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
Batch persist entries into disk (optimized for sequential writes) Read more
Source§fn entry<'life0, 'async_trait>(
&'life0 self,
index: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<Entry>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
fn entry<'life0, 'async_trait>(
&'life0 self,
index: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<Entry>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
Get single log entry by index
Source§fn get_entries(&self, range: RangeInclusive<u64>) -> Result<Vec<Entry>, Error>
fn get_entries(&self, range: RangeInclusive<u64>) -> Result<Vec<Entry>, Error>
Get entries in range [start, end] (inclusive) Read more
Source§fn purge<'life0, 'async_trait>(
&'life0 self,
cutoff_index: LogId,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
fn purge<'life0, 'async_trait>(
&'life0 self,
cutoff_index: LogId,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
Remove logs up to specified index
Source§fn truncate<'life0, 'async_trait>(
&'life0 self,
from_index: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
fn truncate<'life0, 'async_trait>(
&'life0 self,
from_index: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
Truncates log from specified index onward
Source§fn flush_async<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
fn flush_async<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
Optional: Flush pending writes (use with caution)
fn reset<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
RocksDBLogStore: 'async_trait,
Source§fn last_index(&self) -> u64
fn last_index(&self) -> u64
Get last log index (optimized for frequent access) Read more
Auto Trait Implementations§
impl !Freeze for RocksDBLogStore
impl RefUnwindSafe for RocksDBLogStore
impl Send for RocksDBLogStore
impl Sync for RocksDBLogStore
impl Unpin for RocksDBLogStore
impl UnwindSafe for RocksDBLogStore
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