pub struct ZipFileReader<S>(/* private fields */);Expand description
A ZIP reader which acts over a non-seekable source.
See the module-level docs for more information.
Implementations§
Source§impl<'a, R> ZipFileReader<Ready<Counting<R>>>where
R: AsyncBufRead + Unpin + 'a,
impl<'a, R> ZipFileReader<Ready<Counting<R>>>where
R: AsyncBufRead + Unpin + 'a,
Sourcepub async fn next_without_entry(
self,
) -> Result<Option<ZipFileReader<Reading<'a, Counting<R>, WithoutEntry>>>>
pub async fn next_without_entry( self, ) -> Result<Option<ZipFileReader<Reading<'a, Counting<R>, WithoutEntry>>>>
Opens the next entry for reading if the central directory hasn’t yet been reached.
Sourcepub async fn next_with_entry(
self,
) -> Result<Option<ZipFileReader<Reading<'a, Counting<R>, WithEntry<'a>>>>>
pub async fn next_with_entry( self, ) -> Result<Option<ZipFileReader<Reading<'a, Counting<R>, WithEntry<'a>>>>>
Opens the next entry for reading if the central directory hasn’t yet been reached.
Sourcepub async fn into_inner(self) -> R
pub async fn into_inner(self) -> R
Consumes the ZipFileReader returning the original reader
Source§impl<R> ZipFileReader<Ready<R>>where
R: AsyncBufRead + Unpin,
impl<R> ZipFileReader<Ready<R>>where
R: AsyncBufRead + Unpin,
Sourcepub fn with_tokio(reader: R) -> ZipFileReader<TokioReady<R>>
Available on crate feature tokio only.
pub fn with_tokio(reader: R) -> ZipFileReader<TokioReady<R>>
tokio only.Constructs a new tokio-specific ZIP reader from a non-seekable source.
Source§impl<'a, R, E> ZipFileReader<Reading<'a, R, E>>where
R: AsyncBufRead + Unpin,
impl<'a, R, E> ZipFileReader<Reading<'a, R, E>>where
R: AsyncBufRead + Unpin,
Sourcepub fn reader(&self) -> &ZipEntryReader<'a, R, E>
pub fn reader(&self) -> &ZipEntryReader<'a, R, E>
Returns an immutable reference to the inner entry reader.
Sourcepub fn reader_mut(&mut self) -> &mut ZipEntryReader<'a, R, E>
pub fn reader_mut(&mut self) -> &mut ZipEntryReader<'a, R, E>
Returns a mutable reference to the inner entry reader.
Trait Implementations§
Source§impl<S: Clone> Clone for ZipFileReader<S>
impl<S: Clone> Clone for ZipFileReader<S>
Source§fn clone(&self) -> ZipFileReader<S>
fn clone(&self) -> ZipFileReader<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for ZipFileReader<S>where
S: Freeze,
impl<S> RefUnwindSafe for ZipFileReader<S>where
S: RefUnwindSafe,
impl<S> Send for ZipFileReader<S>where
S: Send,
impl<S> Sync for ZipFileReader<S>where
S: Sync,
impl<S> Unpin for ZipFileReader<S>where
S: Unpin,
impl<S> UnwindSafe for ZipFileReader<S>where
S: UnwindSafe,
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