pub struct MemLogRegistry { /* private fields */ }Expand description
Process-shared registry of in-memory transaction logs, keyed by database
name. It plays the role the log directory plays for VersionedLog:
opening the same name (under any lease version) reaches the same records,
so a mem-backed transactor recovers state across open/create calls
within one process. Cloning a registry shares its storage.
Implementations§
Source§impl MemLogRegistry
impl MemLogRegistry
Sourcepub fn open(&self, name: &str, write_version: u64) -> MemVersionedLog
pub fn open(&self, name: &str, write_version: u64) -> MemVersionedLog
Opens the named log for writing under write_version, mirroring
VersionedLog::open with in-memory storage.
Sourcepub fn delete_all(&self, name: &str)
pub fn delete_all(&self, name: &str)
Discards every record for the named log.
Trait Implementations§
Source§impl Clone for MemLogRegistry
impl Clone for MemLogRegistry
Source§fn clone(&self) -> MemLogRegistry
fn clone(&self) -> MemLogRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MemLogRegistry
impl Default for MemLogRegistry
Source§fn default() -> MemLogRegistry
fn default() -> MemLogRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemLogRegistry
impl RefUnwindSafe for MemLogRegistry
impl Send for MemLogRegistry
impl Sync for MemLogRegistry
impl Unpin for MemLogRegistry
impl UnsafeUnpin for MemLogRegistry
impl UnwindSafe for MemLogRegistry
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