pub struct PersistenceRuntime { /* private fields */ }Implementations§
Source§impl PersistenceRuntime
impl PersistenceRuntime
pub fn start(shard_count: usize, config: PersistenceConfig) -> Result<Self>
pub fn appender(&self, shard_id: usize) -> Option<WalAppender>
pub fn is_enabled(&self) -> bool
pub fn stats_snapshot(&self) -> WalStatsSnapshot
pub fn snapshot( &self, entries: &[StoredEntry], timestamp_ms: u64, ) -> Result<PathBuf>
pub fn shutdown(&self) -> Result<()>
Trait Implementations§
Source§impl Drop for PersistenceRuntime
impl Drop for PersistenceRuntime
Auto Trait Implementations§
impl !Freeze for PersistenceRuntime
impl !RefUnwindSafe for PersistenceRuntime
impl Send for PersistenceRuntime
impl Sync for PersistenceRuntime
impl Unpin for PersistenceRuntime
impl UnsafeUnpin for PersistenceRuntime
impl !UnwindSafe for PersistenceRuntime
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