pub enum Progress<'a> {
FileBegin {
start: u64,
name: &'a str,
},
ProgressStep,
FileFailed {
error: Error,
},
FileDone {
end: u64,
},
}Expand description
Progress information
Used for the progress callbacks in some functions in this crate to pass status information to the calling code.
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
Processing the current file failed, but this wasn’t fatal for the whole operation
error: underlying error
FileDone
Current file was processed successfully
end: offset in the input file where processing completed
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Progress<'a>
impl<'a> !RefUnwindSafe for Progress<'a>
impl<'a> Send for Progress<'a>
impl<'a> Sync for Progress<'a>
impl<'a> Unpin for Progress<'a>
impl<'a> !UnwindSafe for Progress<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more