Skip to main content

SolidWalker

Trait SolidWalker 

Source
pub trait SolidWalker {
    // Required methods
    fn next(&mut self, max: usize) -> Result<Event<'_>>;
    fn point(&self) -> Result<Resume>;
    fn point_byte(&self) -> Option<u64>;
}
Expand description

The walk a SolidStream produces: the tar’s events and, at the Event::Point ones, how decoding can restart.

Required Methods§

Source

fn next(&mut self, max: usize) -> Result<Event<'_>>

The next event. Data is at most max bytes, borrowed until the next call.

Source

fn point(&self) -> Result<Resume>

The resume point at the Point event just returned. Its unit is left for the engine to fill in.

Source

fn point_byte(&self) -> Option<u64>

The archive byte a resume point here would restart in. Cheap: for measuring only.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl SolidWalker for hatchzip_core::archive::targz::Walker

Source§

impl SolidWalker for hatchzip_core::archive::tarxz::Walker

Source§

impl SolidWalker for hatchzip_core::archive::tarzst::Walker