pub struct ScanDiagnostics {
pub candidates: usize,
pub parsed: usize,
pub failures: Vec<ScanFailure>,
}Expand description
Candidate, success, and failure counts for one scan.
A candidate is the smallest independently readable source. parsed counts
candidates read successfully (including valid blank sources), not the number
of sessions a database emitted.
Fields§
§candidates: usizeNumber of independently readable sources discovered.
parsed: usizeNumber of candidates parsed or read successfully.
failures: Vec<ScanFailure>Failures in deterministic provider and source order.
Implementations§
Source§impl ScanDiagnostics
impl ScanDiagnostics
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Whether at least one source failed or was only partially understood.
Sourcepub fn all_failed(&self) -> bool
pub fn all_failed(&self) -> bool
Whether candidates existed but none could be read successfully.
Sourcepub fn partially_failed(&self) -> bool
pub fn partially_failed(&self) -> bool
Whether successful results coexist with one or more failures.
Trait Implementations§
Source§impl Clone for ScanDiagnostics
impl Clone for ScanDiagnostics
Source§fn clone(&self) -> ScanDiagnostics
fn clone(&self) -> ScanDiagnostics
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 ScanDiagnostics
impl Debug for ScanDiagnostics
Source§impl Default for ScanDiagnostics
impl Default for ScanDiagnostics
Source§fn default() -> ScanDiagnostics
fn default() -> ScanDiagnostics
Returns the “default value” for a type. Read more
impl Eq for ScanDiagnostics
Source§impl PartialEq for ScanDiagnostics
impl PartialEq for ScanDiagnostics
impl StructuralPartialEq for ScanDiagnostics
Auto Trait Implementations§
impl Freeze for ScanDiagnostics
impl RefUnwindSafe for ScanDiagnostics
impl Send for ScanDiagnostics
impl Sync for ScanDiagnostics
impl Unpin for ScanDiagnostics
impl UnsafeUnpin for ScanDiagnostics
impl UnwindSafe for ScanDiagnostics
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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