pub struct PlanCounts {
pub to_import: usize,
pub duplicates: usize,
pub errors: usize,
pub total_size: u64,
}Expand description
What the plan decided, counted. There is no “unsupported” bucket, by design: a file is imported, already held, or could not be read. Neither its format nor whether this build has a codec for it can keep it out of the library (issue #695).
Fields§
§to_import: usize§duplicates: usize§errors: usize§total_size: u64Total bytes the plan will bring into the library: the summed on-disk size of every
source file of every Import candidate (skips contribute nothing). This is the
total_size the confirmation UI shows and the free-space probe compares against to set
ImportActionPlan::streaming_recommended. Missing/unreadable sizes count as zero — the
same file already reports as a SkipError, so it is not double-charged as import bytes.
Trait Implementations§
Source§impl Clone for PlanCounts
impl Clone for PlanCounts
Source§fn clone(&self) -> PlanCounts
fn clone(&self) -> PlanCounts
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 moreSource§impl Debug for PlanCounts
impl Debug for PlanCounts
Source§impl Default for PlanCounts
impl Default for PlanCounts
Source§fn default() -> PlanCounts
fn default() -> PlanCounts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlanCounts
impl RefUnwindSafe for PlanCounts
impl Send for PlanCounts
impl Sync for PlanCounts
impl Unpin for PlanCounts
impl UnsafeUnpin for PlanCounts
impl UnwindSafe for PlanCounts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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