use std::error::Error;
mod shrink_album_art;
pub use self::shrink_album_art::shrink_album_art;
#[derive(Debug, Default)]
pub struct BatchOutcome {
pub succeeded: u64,
pub skipped: u64,
pub failed: Vec<Box<dyn Error>>,
pub aborted_error: Option<Box<dyn Error>>,
}
impl BatchOutcome {
#[must_use]
pub(crate) fn abort(self, error: Box<dyn Error>) -> Self {
debug_assert!(self.aborted_error.is_none());
Self {
aborted_error: Some(error),
..self
}
}
}