mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +00:00
Add doc for TarEntriesVisitor
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
0eb9424f17
commit
0162f5f462
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ use zstd::stream::Decoder as ZstdDecoder;
|
|||
|
||||
use crate::{BinstallError, TarBasedFmt};
|
||||
|
||||
/// Visitor must iterate over all entries.
|
||||
/// Entires can be in arbitary order.
|
||||
pub trait TarEntriesVisitor {
|
||||
fn visit<R: Read>(&mut self, entries: Entries<'_, R>) -> Result<(), BinstallError>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue