Enum compress_tools::ArchiveContents[][src]

pub enum ArchiveContents {
    StartOfEntry(String),
    DataChunk(Vec<u8>),
    EndOfEntry,
    Err(Error),
}
Expand description

The contents of an archive, yielded in order from the beginning to the end of the archive.

Each entry, file or directory, will have a ArchiveContents::StartOfEntry, zero or more ArchiveContents::DataChunk, and then a corresponding ArchiveContents::EndOfEntry to mark that the entry has been read to completion.

Variants

StartOfEntry(String)

Marks the start of an entry, either a file or a directory.

Tuple Fields of StartOfEntry

0: String
DataChunk(Vec<u8>)

A chunk of uncompressed data from the entry. Entries may have zero or more chunks.

Tuple Fields of DataChunk

0: Vec<u8>
EndOfEntry

Marks the end of the entry that was started by the previous StartOfEntry.

Err(Error)

Tuple Fields of Err

0: Error

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.