#[non_exhaustive]pub enum WriteProgressEvent<'a> {
OperationStarted {
operation: WriteOperation,
total_bytes: Option<u64>,
total_entries: Option<usize>,
pass: usize,
},
EntryStarted {
operation: WriteOperation,
index: usize,
total_entries: usize,
name: &'a [u8],
input_bytes: u64,
},
EntryFinished {
operation: WriteOperation,
index: usize,
total_entries: usize,
name: &'a [u8],
input_bytes: u64,
},
Advanced {
operation: WriteOperation,
completed_bytes: u64,
total_bytes: u64,
pass: usize,
},
VolumeFinished {
volume_number: usize,
total_volumes: Option<usize>,
bytes: u64,
},
OperationFinished {
operation: WriteOperation,
total_bytes: Option<u64>,
total_entries: Option<usize>,
pass: usize,
},
}Expand description
Progress reported by archive writers.
Callbacks can be invoked concurrently when parallel compression is enabled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OperationStarted
An operation has started.
EntryStarted
Work on one archive member has started.
EntryFinished
Work on one archive member has finished.
Advanced
Absolute progress within the current operation or pass.
VolumeFinished
One volume of a multi-volume set has been written out.
OperationFinished
An operation has finished.
Trait Implementations§
Source§impl<'a> Clone for WriteProgressEvent<'a>
impl<'a> Clone for WriteProgressEvent<'a>
Source§fn clone(&self) -> WriteProgressEvent<'a>
fn clone(&self) -> WriteProgressEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for WriteProgressEvent<'a>
Source§impl<'a> Debug for WriteProgressEvent<'a>
impl<'a> Debug for WriteProgressEvent<'a>
impl<'a> Eq for WriteProgressEvent<'a>
Source§impl<'a> PartialEq for WriteProgressEvent<'a>
impl<'a> PartialEq for WriteProgressEvent<'a>
impl<'a> StructuralPartialEq for WriteProgressEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for WriteProgressEvent<'a>
impl<'a> RefUnwindSafe for WriteProgressEvent<'a>
impl<'a> Send for WriteProgressEvent<'a>
impl<'a> Sync for WriteProgressEvent<'a>
impl<'a> Unpin for WriteProgressEvent<'a>
impl<'a> UnsafeUnpin for WriteProgressEvent<'a>
impl<'a> UnwindSafe for WriteProgressEvent<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more