[−][src]Trait asuran::chunker::AsyncChunker
Asynchronous version of Chunker
Only available if the streams feature is enabled.
Works by performing the chunking in an async task, falling through to the implementation in
Chunker
, and passing the results over an mspc channel
Required methods
fn async_chunk_boxed(
&self,
read: Box<dyn Read + 'static + Send>
) -> Receiver<Result<Vec<u8>, ChunkerError>>
&self,
read: Box<dyn Read + 'static + Send>
) -> Receiver<Result<Vec<u8>, ChunkerError>>
Async version of Chunker::chunk_boxed
fn async_chunk<R>(&self, read: R) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + Read + Send,
R: 'static + Read + Send,
Async version of Chunker::chunk
fn async_chunk_slice<R>(
&self,
slice: R
) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + AsRef<[u8]> + Send,
&self,
slice: R
) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + AsRef<[u8]> + Send,
Async version of Chunker::chunk_slice
Implementors
impl<T> AsyncChunker for T where
T: Chunker + Send + Sync,
<T as Chunker>::Chunks: Send,
[src]
T: Chunker + Send + Sync,
<T as Chunker>::Chunks: Send,
fn async_chunk_boxed(
&self,
read: Box<dyn Read + 'static + Send>
) -> Receiver<Result<Vec<u8>, ChunkerError>>
[src]
&self,
read: Box<dyn Read + 'static + Send>
) -> Receiver<Result<Vec<u8>, ChunkerError>>
fn async_chunk<R>(&self, read: R) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + Read + Send,
[src]
R: 'static + Read + Send,
fn async_chunk_slice<R>(
&self,
slice: R
) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + AsRef<[u8]> + Send,
[src]
&self,
slice: R
) -> Receiver<Result<Vec<u8>, ChunkerError>> where
R: 'static + AsRef<[u8]> + Send,