Skip to main content

ImportExecutionSummary

Struct ImportExecutionSummary 

Source
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

Source

pub fn imported_count(&self) -> usize

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn duplicate_count(&self) -> usize

Source

pub fn error_count(&self) -> usize

Trait Implementations§

Source§

impl Debug for ImportExecutionSummary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ImportExecutionSummary

Source§

fn default() -> ImportExecutionSummary

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more