pub struct FreeSpaceManager { /* private fields */ }Implementations§
Source§impl FreeSpaceManager
impl FreeSpaceManager
pub fn new(file_manager: Arc<FileManager2>) -> FreeSpaceManager
pub async fn get_next_free_page( &self, page_id: PageId, ) -> Result<PageOffset, FreeSpaceManagerError>
pub async fn mark_page( &self, page_id: PageId, po: PageOffset, status: FreeStat, ) -> Result<(), FreeSpaceManagerError>
Trait Implementations§
Source§impl Clone for FreeSpaceManager
impl Clone for FreeSpaceManager
Source§fn clone(&self) -> FreeSpaceManager
fn clone(&self) -> FreeSpaceManager
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 moreAuto Trait Implementations§
impl Freeze for FreeSpaceManager
impl !RefUnwindSafe for FreeSpaceManager
impl Send for FreeSpaceManager
impl Sync for FreeSpaceManager
impl Unpin for FreeSpaceManager
impl !UnwindSafe for FreeSpaceManager
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