pub trait ChunkReader: 'static + Send + Sync {
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;
;
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;
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;
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,
{ ... }
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,
{ ... }
}
Required Methods
sourcefn clone_as_reader(&self) -> Box<dyn ChunkReader>ⓘNotable traits for Box<F, A>
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;
sourcefn exists<'life0, 'life1, 'async_trait>(
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;
sourcefn get<'life0, 'life1, 'async_trait>(
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;
Provided Methods
sourcefn read<'life0, 'life1, 'async_trait>(
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;
sourcefn read_ext<'life0, 'life1, 'async_trait>(
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;