Struct rustdb::pstore::SharedPagedData
source · pub struct SharedPagedData {
pub ps: RwLock<Box<dyn PageStorage>>,
pub stash: Mutex<Stash>,
pub psi: Box<dyn PageStorageInfo>,
}
Expand description
Allows logical database pages to be shared to allow concurrent readers.
Fields§
§ps: RwLock<Box<dyn PageStorage>>
Permanent storage of pages.
stash: Mutex<Stash>
Stash of pages.
psi: Box<dyn PageStorageInfo>
Info on page sizes.
Implementations§
sourcepub fn new(stg: Box<dyn Storage>) -> Arc<Self>
pub fn new(stg: Box<dyn Storage>) -> Arc<Self>
Construct default SharedPageData ( default depends on compact feature ).
sourcepub fn new_from_ps(ps: Box<dyn PageStorage>) -> Arc<Self>
pub fn new_from_ps(ps: Box<dyn PageStorage>) -> Arc<Self>
Construct SharedPageData based on specified PageStorage ( e.g. BlockPageStg )
sourcepub fn wait_complete(&self)
pub fn wait_complete(&self)
Wait until current commits have been written.
Auto Trait Implementations§
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