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]

pub async fn write_page_data(
    &self,
    page_id: PageId,
    data: &Aligned
) -> Result<(), Error>
[src]

pub async fn allocate_page(
    &self
) -> (PageId, impl '_ + Future<Output = Result<(), Error>>)
[src]

pub async fn sync(&self) -> Result<(), Error>[src]

pub async fn sync_data(&self) -> Result<(), Error>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.