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§
Sourcefn next(&mut self, max: usize) -> Result<Event<'_>>
fn next(&mut self, max: usize) -> Result<Event<'_>>
The next event. Data is at most max bytes, borrowed until the
next call.
Sourcefn point(&self) -> Result<Resume>
fn point(&self) -> Result<Resume>
The resume point at the Point event just returned. Its unit is
left for the engine to fill in.
Sourcefn point_byte(&self) -> Option<u64>
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".