pub struct ArchiveIteratorBuilder<R> { /* private fields */ }Expand description
Builder for a futures-backed AsyncArchiveIterator.
Mirrors crate::ArchiveIteratorBuilder but produces an asynchronous
futures_core::Stream of entries over a futures_io::AsyncRead + AsyncSeek source. The source must be Send + 'static because it is
moved into a blocking worker that hosts the sync libarchive state for
the iterator’s lifetime.
Implementations§
Source§impl<R> ArchiveIteratorBuilder<R>
impl<R> ArchiveIteratorBuilder<R>
pub fn new(source: R) -> ArchiveIteratorBuilder<R>
pub fn decoder(self, decoder: DecodeCallback) -> ArchiveIteratorBuilder<R>
pub fn filter<F>(self, filter: F) -> ArchiveIteratorBuilder<R>
pub fn with_password( self, password: ArchivePassword, ) -> ArchiveIteratorBuilder<R>
pub fn build(self) -> AsyncArchiveIterator
Auto Trait Implementations§
impl<R> Freeze for ArchiveIteratorBuilder<R>where
R: Freeze,
impl<R> !RefUnwindSafe for ArchiveIteratorBuilder<R>
impl<R> Send for ArchiveIteratorBuilder<R>where
R: Send,
impl<R> Sync for ArchiveIteratorBuilder<R>where
R: Sync,
impl<R> Unpin for ArchiveIteratorBuilder<R>where
R: Unpin,
impl<R> UnsafeUnpin for ArchiveIteratorBuilder<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for ArchiveIteratorBuilder<R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more