Struct haneru::disk::DiskManager [−][src]
pub struct DiskManager { /* fields omitted */ }
Implementations
impl DiskManager
[src]
pub fn new(heap_file: File) -> Result<Self, Error>
[src]
pub fn open(heap_file_path: impl AsRef<Path>) -> Result<Self, Error>
[src]
pub async fn read_page_data(
&self,
page_id: PageId,
data: &mut Aligned
) -> Result<(), Error>
[src]
&self,
page_id: PageId,
data: &mut Aligned
) -> Result<(), Error>
pub async fn write_page_data(
&self,
page_id: PageId,
data: &Aligned
) -> Result<(), Error>
[src]
&self,
page_id: PageId,
data: &Aligned
) -> Result<(), Error>
pub async fn allocate_page(
&self
) -> (PageId, impl '_ + Future<Output = Result<(), Error>>)
[src]
&self
) -> (PageId, impl '_ + Future<Output = Result<(), Error>>)
pub async fn sync(&self) -> Result<(), Error>
[src]
pub async fn sync_data(&self) -> Result<(), Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DiskManager
impl Send for DiskManager
impl Sync for DiskManager
impl Unpin for DiskManager
impl !UnwindSafe for DiskManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,