pub trait ReadZipWithSize {
    type File: HasCursor;

    // Required method
    fn read_zip_with_size(
        &self,
        size: u64
    ) -> Result<SyncArchive<'_, Self::File>, Error>;
}
Expand description

A trait for reading something as a zip archive (blocking I/O model)

See also ReadZip.

Required Associated Types§

Required Methods§

source

fn read_zip_with_size( &self, size: u64 ) -> Result<SyncArchive<'_, Self::File>, Error>

Reads self as a zip archive.

This functions blocks until the entire archive has been read. It is not compatible with non-blocking or async I/O.

Implementors§

source§

impl<F> ReadZipWithSize for Fwhere F: HasCursor,

§

type File = F