Skip to main content

SolidStream

Trait SolidStream 

Source
pub trait SolidStream: Send + Sync {
    // Required methods
    fn profile(&self) -> &Profile;
    fn walk(&self, from: Option<&Resume>) -> Result<Box<dyn SolidWalker>>;
}
Expand description

An archive that is one compressed stream, decodable only from the front: everything it holds is inside one decode pass, so instead of units extracted from the end, the whole archive is one unit extracted front to back, and the engine frees the compressed bytes behind the decoder. See targz and tarxz.

Required Methods§

Source

fn profile(&self) -> &Profile

What a scan measured about the output: see targz::Profile.

Source

fn walk(&self, from: Option<&Resume>) -> Result<Box<dyn SolidWalker>>

Walks the archive from from, or from its start. The walk depends on nothing but the archive, so the box outlives the cloneable handle it came from.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SolidStream for hatchzip_core::archive::targz::Solid

Source§

impl SolidStream for hatchzip_core::archive::tarxz::Solid