pub fn reconstruct<T>(
        &self,
        index: usize,
        fragments: Vec<T>,
    ) -> impl Future<Item = Vec<u8>, Error = Error>
    where
        T: AsRef<Fragment> + Send + 'static,
    {
        let builder = self.builder.clone();
        let result = DefaultCpuTaskQueue.async_call(move || {
            let fragments = fragments.iter().map(|f| f.as_ref()).collect::<Vec<_>>();
            Self::with_coder(&builder, |coder| coder.reconstruct(index, &fragments))
        });
        LazyResult(result)
    }
/// Reconstructs the fragment specified by the given index from other fragments asynchronously.
///
/// The reconstruction process will be executed on a thread in the pool.
Reconstructs the fragment specified by the given index from other fragments asynchronously.
The reconstruction process will be executed on a thread in the pool.
Reconstructs the fragment specified by the given index from other fragments asynchronously . The reconstruction process will be executed on a thread in the pool .
pub fn reconstruct<T>(
        &self,
        index: usize,
        fragments: Vec<T>,
    ) -> impl Future<Item = Vec<u8>, Error = Error>
    where
        T: AsRef<Fragment> + Send + 'static,
    {
        let builder = self.builder.clone();
        let result = DefaultCpuTaskQueue.async_call(move || {
            let fragments = fragments.iter().map(|f| f.as_ref()).collect::<Vec<_>>();
            Self::with_coder(&builder, |coder| coder.reconstruct(index, &fragments))
        });
        LazyResult(result)
    }
pub fn reconstruct < T > ( & self , index : usize , fragments : Vec < T > , ) -> impl Future < Item = Vec < u8 > , Error = Error > where T : AsRef < Fragment > + Send + ' static , { let builder = self . builder . clone ( ) ; let result = DefaultCpuTaskQueue . async_call ( move | | { let fragments = fragments . iter ( ) . map ( | f | f . as_ref ( ) ) . collect :: < Vec < _ > > ( ) ; Self :: with_coder ( & builder , | coder | coder . reconstruct ( index , & fragments ) ) } ) ; LazyResult ( result ) }
Reconstructs the fragment specified by the given index from other fragments asynchronously.
Reconstructs the fragment specified by the given index from other fragments asynchronously .
&self
index
usize
fragments
Vec<T>
&self
index
usize
fragments
Vec<T>