Enum gunzip_split::Progress
source · [−]pub enum Progress<'a> {
FileBegin {
start: u64,
name: &'a str,
},
ProgressStep,
FileFailed {
error: Error,
},
FileDone {
end: u64,
},
}Variants
FileBegin
Processing of a file starts
start: offset in the input file where processing startsname: filename (if no metadata is found a dummy name like “file_counter” is used)
ProgressStep
Forward progress happened
Guarantees for the progress callbacks:
- passed at least once for every file that could be successfully processed
- passed directly after an OS signal interrupted a system call.
FileFailed
Fields
error: ErrorProcessing the current file failed, but this wasn’t fatal for the whole operation
error: underlying error
FileDone
Fields
end: u64Current file was processed successfully
end: offset in the input file where processing completed