Struct rustdb::pstore::AccessPagedData
source · pub struct AccessPagedData {
pub spd: Arc<SharedPagedData>,
/* private fields */
}
Expand description
Access to shared paged data.
Fields§
§spd: Arc<SharedPagedData>
Implementations§
source§impl AccessPagedData
impl AccessPagedData
sourcepub fn new_reader(spd: Arc<SharedPagedData>) -> Self
pub fn new_reader(spd: Arc<SharedPagedData>) -> Self
Construct access to a virtual read-only copy of the database logical pages.
sourcepub fn new_writer(spd: Arc<SharedPagedData>) -> Self
pub fn new_writer(spd: Arc<SharedPagedData>) -> Self
Construct access to the database logical pages.
sourcepub fn stash(&self) -> MutexGuard<'_, Stash>
pub fn stash(&self) -> MutexGuard<'_, Stash>
Get locked guard of stash.
sourcepub fn compress(&self, size: usize, saving: usize) -> bool
pub fn compress(&self, size: usize, saving: usize) -> bool
Check whether compressing a page is worthwhile.
sourcepub fn alloc_page(&self) -> u64
pub fn alloc_page(&self) -> u64
Allocate a logical page.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AccessPagedData
impl Send for AccessPagedData
impl Sync for AccessPagedData
impl Unpin for AccessPagedData
impl UnwindSafe for AccessPagedData
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