Trait rc_zip::reader::sync::ReadZipWithSize
source · 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§
sourcefn read_zip_with_size(
&self,
size: u64
) -> Result<SyncArchive<'_, Self::File>, Error>
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.