Struct rustdb::blockpagestg::BlockPageStg
source · pub struct BlockPageStg {
pub ds: DividedStg,
/* private fields */
}
Expand description
Implementation of PageStorage using DividedStg.
Fields§
§ds: DividedStg
Underlying Divided Storage.
Implementations§
Trait Implementations§
source§impl PageStorage for BlockPageStg
impl PageStorage for BlockPageStg
source§fn info(&self) -> Box<dyn PageStorageInfo>
fn info(&self) -> Box<dyn PageStorageInfo>
Information about page sizes.
source§fn rollback(&mut self)
fn rollback(&mut self)
Undo changes since last save ( but set_page/renumber cannot be undone, only new_page and drop_page can be undone ).
source§fn wait_complete(&self)
fn wait_complete(&self)
Wait until save is complete.
source§fn get_free(&mut self) -> (FxHashSet<u64>, u64)
fn get_free(&mut self) -> (FxHashSet<u64>, u64)
Get set of free pages and number of pages ever allocated ( for VERIFY builtin function ).
source§fn load_free_pages(&mut self) -> Option<u64>
fn load_free_pages(&mut self) -> Option<u64>
Load free pages in preparation for page renumbering. Returns number of used pages or None if there are no free pages.
source§fn set_alloc_pn(&mut self, target: u64)
fn set_alloc_pn(&mut self, target: u64)
Final part of page renumber operation.
Auto Trait Implementations§
impl Freeze for BlockPageStg
impl !RefUnwindSafe for BlockPageStg
impl Send for BlockPageStg
impl Sync for BlockPageStg
impl Unpin for BlockPageStg
impl !UnwindSafe for BlockPageStg
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