pub struct UnclaimedPages { /* private fields */ }Expand description
On-disk representation of the unclaimed-pages ledger.
The ledger is a LIFO stack of Page numbers. Push appends, pop
removes from the tail.
Implementations§
Source§impl UnclaimedPages
impl UnclaimedPages
Sourcepub fn remaining_capacity(&self) -> u32
pub fn remaining_capacity(&self) -> u32
Returns how many additional pages can still be tracked.
Sourcepub fn push(&mut self, page: Page) -> MemoryResult<()>
pub fn push(&mut self, page: Page) -> MemoryResult<()>
Trait Implementations§
Source§impl Clone for UnclaimedPages
impl Clone for UnclaimedPages
Source§fn clone(&self) -> UnclaimedPages
fn clone(&self) -> UnclaimedPages
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnclaimedPages
impl Debug for UnclaimedPages
Source§impl Default for UnclaimedPages
impl Default for UnclaimedPages
Source§fn default() -> UnclaimedPages
fn default() -> UnclaimedPages
Returns the “default value” for a type. Read more
Source§impl Encode for UnclaimedPages
impl Encode for UnclaimedPages
Source§impl PartialEq for UnclaimedPages
impl PartialEq for UnclaimedPages
impl Eq for UnclaimedPages
impl StructuralPartialEq for UnclaimedPages
Auto Trait Implementations§
impl Freeze for UnclaimedPages
impl RefUnwindSafe for UnclaimedPages
impl Send for UnclaimedPages
impl Sync for UnclaimedPages
impl Unpin for UnclaimedPages
impl UnsafeUnpin for UnclaimedPages
impl UnwindSafe for UnclaimedPages
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