pub enum Progress<'a> {
    FileBegin {
        start: u64,
        name: &'a str,
    },
    ProgressStep,
    FileFailed {
        error: Error,
    },
    FileDone {
        end: u64,
    },
}

Variants

FileBegin

Fields

start: u64
name: &'a str

Processing of a file starts

  • start: offset in the input file where processing starts
  • name: 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: Error

Processing the current file failed, but this wasn’t fatal for the whole operation

  • error: underlying error

FileDone

Fields

end: u64

Current file was processed successfully

  • end: offset in the input file where processing completed

Trait Implementations

Formats the value using the given formatter. Read more

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.