pub struct ImportExecutionSummary {
pub outcomes: Vec<(PathBuf, ImportOutcome)>,
}Expand description
Summary of a completed import run.
Fields§
§outcomes: Vec<(PathBuf, ImportOutcome)>Implementations§
Source§impl ImportExecutionSummary
impl ImportExecutionSummary
pub fn imported_count(&self) -> usize
Sourcepub fn deferred_derivative_count(&self) -> usize
pub fn deferred_derivative_count(&self) -> usize
How many of the imported assets landed without thumbnail/preview derivatives because this build has no codec for their format.
These are counted by imported_count too — they are successful
imports; the original is signed, encrypted and verifiable. This is the number a caller
reports as “N imported without derivatives” so a HEIC-only library does not look like it
silently lost its previews. Genuine decode failures of supported formats are excluded;
see decode_failed_count.
Sourcepub fn deferred_format_count(&self) -> usize
pub fn deferred_format_count(&self) -> usize
The total number of (tier, format) pairs across the run that the tier table commits to
and this build cannot encode.
Not a failure count, and not comparable to
deferred_derivative_count. That one counts assets
with no thumbnail at all; this one counts format variants missing from assets that do
have one. A library of decodable JPEGs reports zero deferred derivatives and two deferred
formats per asset — the JXL master and the AVIF delivery variant — which is exactly the
number that should fall to zero as the encoders land, and the reason it is reported rather
than left implicit in a doc.
Sourcepub fn decode_failed_count(&self) -> usize
pub fn decode_failed_count(&self) -> usize
How many imported assets are in a format this build does support but whose bytes did
not decode — unlike deferred_derivative_count this
is a real problem worth surfacing, not an expected gap. The original is still imported.
Sourcepub fn held_sources(&self) -> Vec<(PathBuf, Uuid)>
pub fn held_sources(&self) -> Vec<(PathBuf, Uuid)>
Every source file the library now holds, paired with the asset that holds it: each imported file, and each file skipped as a duplicate of an asset already in the library.
These are the sources a Move-mode import may delete, and only through the release gate
(Workspace::release_move_source):
the executor never deletes one itself. A duplicate is listed so a re-run of a Move import
whose first run kept its sources can release them; the gate’s read-back check still
refuses any source whose bytes do not hash to that asset’s signed original.
pub fn duplicate_count(&self) -> usize
pub fn error_count(&self) -> usize
Trait Implementations§
Source§impl Debug for ImportExecutionSummary
impl Debug for ImportExecutionSummary
Source§impl Default for ImportExecutionSummary
impl Default for ImportExecutionSummary
Source§fn default() -> ImportExecutionSummary
fn default() -> ImportExecutionSummary
Auto Trait Implementations§
impl Freeze for ImportExecutionSummary
impl RefUnwindSafe for ImportExecutionSummary
impl Send for ImportExecutionSummary
impl Sync for ImportExecutionSummary
impl Unpin for ImportExecutionSummary
impl UnsafeUnpin for ImportExecutionSummary
impl UnwindSafe for ImportExecutionSummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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