Struct rustdb::stg::MultiFileStorage
source · pub struct MultiFileStorage { /* private fields */ }
Expand description
Alternative to SimpleFileStorage that uses multiple SimpleFileStorages to allow parallel reads/writes by different processes.
Implementations§
Trait Implementations§
source§impl Storage for MultiFileStorage
impl Storage for MultiFileStorage
source§fn size(&self) -> u64
fn size(&self) -> u64
Get the size of the underlying storage.
Note : this is valid initially and after a commit but is not defined after write is called.
source§fn commit(&mut self, size: u64)
fn commit(&mut self, size: u64)
Finish write transaction, size is new size of underlying storage.
fn clone(&self) -> Box<dyn Storage>
Auto Trait Implementations§
impl RefUnwindSafe for MultiFileStorage
impl Send for MultiFileStorage
impl Sync for MultiFileStorage
impl Unpin for MultiFileStorage
impl UnwindSafe for MultiFileStorage
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