pub enum ProcessEvent {
AlbumStarted {
title: String,
image_count: usize,
},
ImageProcessed {
index: usize,
title: Option<String>,
source_path: String,
variants: Vec<VariantInfo>,
},
CachePruned {
removed: u32,
},
}Expand description
Progress events emitted during image processing.
Sent through an optional channel so callers can display progress as images complete, without the process module touching stdout.
Variants§
AlbumStarted
An album is about to be processed.
ImageProcessed
A single image finished processing (or served from cache).
Fields
§
title: Option<String>Title if the image has one (from IPTC or filename). None for
untitled images like 38.avif — the output formatter shows
the filename instead.
§
variants: Vec<VariantInfo>Per-variant cache/encode status.
CachePruned
Stale cache entries were pruned after processing.
Trait Implementations§
Source§impl Clone for ProcessEvent
impl Clone for ProcessEvent
Source§fn clone(&self) -> ProcessEvent
fn clone(&self) -> ProcessEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ProcessEvent
impl RefUnwindSafe for ProcessEvent
impl Send for ProcessEvent
impl Sync for ProcessEvent
impl Unpin for ProcessEvent
impl UnsafeUnpin for ProcessEvent
impl UnwindSafe for ProcessEvent
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