Struct cyfs_bdt::local_chunk_store::LocalChunkReader
source · [−]pub struct LocalChunkReader(_);Implementations
sourceimpl LocalChunkReader
impl LocalChunkReader
pub fn new(ndc: &dyn NamedDataCache, tracker: &dyn TrackerCache) -> Self
Trait Implementations
sourceimpl ChunkReader for LocalChunkReader
impl ChunkReader for LocalChunkReader
fn clone_as_reader(&self) -> Box<dyn ChunkReader>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId
) -> Pin<Box<dyn Future<Output = BuckyResult<Arc<Vec<u8>>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId
) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn AsyncReadWithSeek + Unpin + Send + Sync>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn read_ext<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk: &'life1 ChunkId,
ranges: Vec<Range<u64>>
) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn Read + Unpin + Send + Sync>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl Clone for LocalChunkReader
impl Clone for LocalChunkReader
sourcefn clone(&self) -> LocalChunkReader
fn clone(&self) -> LocalChunkReader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl !RefUnwindSafe for LocalChunkReader
impl Send for LocalChunkReader
impl Sync for LocalChunkReader
impl Unpin for LocalChunkReader
impl !UnwindSafe for LocalChunkReader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more