pub enum PackProgress {
Started {
rel_path: String,
current: usize,
total: usize,
},
Finished {
asset_count: usize,
pack_bytes: u64,
},
Failed {
message: String,
},
}Expand description
One step of a pack build, suitable for driving a UI progress bar.
Variants§
Started
A new asset is about to be streamed into data.pack.
Fields
Finished
The build finished successfully.
Failed
The build failed mid-way. The error message is best-effort — the
caller should still surface the Result returned from build().
Trait Implementations§
Source§impl Clone for PackProgress
impl Clone for PackProgress
Source§fn clone(&self) -> PackProgress
fn clone(&self) -> PackProgress
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 moreAuto Trait Implementations§
impl Freeze for PackProgress
impl RefUnwindSafe for PackProgress
impl Send for PackProgress
impl Sync for PackProgress
impl Unpin for PackProgress
impl UnsafeUnpin for PackProgress
impl UnwindSafe for PackProgress
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