pub struct CasyncBlockReader<S> { /* private fields */ }Implementations§
Source§impl<S> CasyncBlockReader<S>where
S: CasyncChunkStore,
impl<S> CasyncBlockReader<S>where
S: CasyncChunkStore,
pub async fn open<I>(
index_source: I,
chunk_store: S,
config: CasyncReaderConfig,
) -> GibbloxResult<Self>where
I: CasyncIndexSource,
pub fn index(&self) -> &CasyncIndex
pub fn index_digest(&self) -> CasyncChunkId
pub fn chunks_verified(&self) -> u64
Trait Implementations§
Source§impl<S> BlockReader for CasyncBlockReader<S>where
S: CasyncChunkStore,
impl<S> BlockReader for CasyncBlockReader<S>where
S: CasyncChunkStore,
Source§fn block_size(&self) -> u32
fn block_size(&self) -> u32
Logical block size in bytes.
Source§fn total_blocks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = GibbloxResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn total_blocks<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = GibbloxResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Total number of logical blocks available.
Source§fn write_identity(&self, out: &mut dyn Write) -> Result
fn write_identity(&self, out: &mut dyn Write) -> Result
Write a stable, canonical identity string for this block reader.
Source§fn read_blocks<'life0, 'life1, 'async_trait>(
&'life0 self,
lba: u64,
buf: &'life1 mut [u8],
ctx: ReadContext,
) -> Pin<Box<dyn Future<Output = GibbloxResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_blocks<'life0, 'life1, 'async_trait>(
&'life0 self,
lba: u64,
buf: &'life1 mut [u8],
ctx: ReadContext,
) -> Pin<Box<dyn Future<Output = GibbloxResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> !Freeze for CasyncBlockReader<S>
impl<S> RefUnwindSafe for CasyncBlockReader<S>where
S: RefUnwindSafe,
impl<S> Send for CasyncBlockReader<S>where
S: Send,
impl<S> Sync for CasyncBlockReader<S>where
S: Sync,
impl<S> Unpin for CasyncBlockReader<S>where
S: Unpin,
impl<S> UnsafeUnpin for CasyncBlockReader<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for CasyncBlockReader<S>where
S: UnwindSafe,
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