Skip to main content

VolumeRead

Trait VolumeRead 

Source
pub trait VolumeRead {
    // Required methods
    fn vid(&self) -> &VolumeId;
    fn snapshot(&self) -> Option<&Snapshot>;
    fn read<O: Oracle>(
        &self,
        oracle: &mut O,
        pageidx: PageIdx,
    ) -> Result<Page, ClientErr>;
    fn status(&self, pageidx: PageIdx) -> Result<PageStatus, ClientErr>;
}

Required Methods§

Source

fn vid(&self) -> &VolumeId

Source

fn snapshot(&self) -> Option<&Snapshot>

Retrieve the Volume snapshot backing this reader

Source

fn read<O: Oracle>( &self, oracle: &mut O, pageidx: PageIdx, ) -> Result<Page, ClientErr>

Read a page from the snapshot

Source

fn status(&self, pageidx: PageIdx) -> Result<PageStatus, ClientErr>

Retrieve a page’s status

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§