pub struct StorageManager { /* private fields */ }Implementations§
Source§impl StorageManager
impl StorageManager
Sourcepub fn open(dir: impl Into<PathBuf>) -> Result<Self>
pub fn open(dir: impl Into<PathBuf>) -> Result<Self>
Opens dir, the directory holding the relation files: base/<database OID> in a Postgres cluster.
Sourcepub fn read(
&self,
block: BlockIdentifier,
page: &mut Page,
) -> Result<(), BlockError>
pub fn read( &self, block: BlockIdentifier, page: &mut Page, ) -> Result<(), BlockError>
Fetch the block from the disk and store its bits into page.
Auto Trait Implementations§
impl !Freeze for StorageManager
impl RefUnwindSafe for StorageManager
impl Send for StorageManager
impl Sync for StorageManager
impl Unpin for StorageManager
impl UnsafeUnpin for StorageManager
impl UnwindSafe for StorageManager
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