Trait rc_zip::reader::sync::ReadZip

source ·
pub trait ReadZip {
    type File: HasCursor;

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

A trait for reading something as a zip archive (blocking I/O model), when we can tell size from self.

See also ReadZipWithSize.

Required Associated Types§

Required Methods§

source

fn read_zip(&self) -> 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.

Implementations on Foreign Types§

source§

impl ReadZip for &[u8]

§

type File = &[u8]

source§

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

source§

impl ReadZip for Vec<u8>

§

type File = Vec<u8, Global>

source§

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

source§

impl ReadZip for File

§

type File = File

source§

fn read_zip(&self) -> Result<SyncArchive<'_, Self>, Error>

Implementors§