diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -245,10 +245,13 @@ impl<'a> Images<'a> { /// imports an image or set of images from a given tarball source /// source can be uncompressed on compressed via gzip, bzip2 or xz - pub fn import( + pub fn import<R>( self, - mut tarball: Box<dyn Read>, - ) -> impl Stream<Item = Result<Value>> + Unpin + 'a { + mut tarball: R, + ) -> impl Stream<Item = Result<Value>> + Unpin + 'a + where + R: Read + Send + 'a, + { Box::pin( async move { let mut bytes = Vec::default(); |