#[non_exhaustive]pub enum DependencyClosureError {
Show 23 variants
ResourceKeyTooLong {
bytes: usize,
limit: usize,
},
InvalidResourceKey,
TooManyPathComponents {
components: usize,
limit: usize,
},
ReferenceNotStarted,
ExternalKeyAlreadyPrepared,
UnfinishedReference,
NonCanonicalReferenceOrder {
expected: usize,
actual: usize,
},
ExternalIdentityMissing,
ExternalKeyNotPrepared,
ExternalKeyMismatch,
ExternalOutcomeMissing,
ExternalOutcomeMismatch,
ExternalKeyNotOpened,
DuplicateExternalOpen,
ReferenceCountMismatch {
expected: usize,
actual: usize,
},
PrimaryIdentityMismatch,
ResourceReferenceCountMismatch {
facts: usize,
closure: usize,
},
ResourceReferenceMismatch {
source_order_index: usize,
},
ResourceKeyMismatch {
source_order_index: usize,
},
CompleteCoverageMismatch,
UnavailableCoverageMismatch,
CoverageReasonMismatch,
ClosureIdentityCoverageMismatch,
}Expand description
Invalid closure construction or source-fact binding invariant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ResourceKeyTooLong
A logical key exceeded the V1 byte limit.
InvalidResourceKey
A source-relative key was malformed, absolute, remote, or escaping.
TooManyPathComponents
A key exceeded the component limit.
ReferenceNotStarted
A declaration outcome was supplied without successful preflight.
ExternalKeyAlreadyPrepared
One declaration attempted to prepare more than one external key.
UnfinishedReference
A begun declaration did not receive a typed outcome.
NonCanonicalReferenceOrder
Reference rows were not a zero-based source-order prefix.
ExternalIdentityMissing
An alias referenced a key not yet captured.
ExternalKeyNotPrepared
A loader used an external key without admitting it through the bounded key set.
ExternalKeyMismatch
An outcome key differed from the exact key prepared for this declaration.
ExternalOutcomeMissing
A cached key had no terminal captured/refused/unavailable outcome.
ExternalOutcomeMismatch
An alias or retry contradicted the cached outcome for its normalized key.
ExternalKeyNotOpened
A loader supplied an external identity without recording the same capture’s open.
DuplicateExternalOpen
A normalized key was opened more than once instead of reusing its cached outcome.
ReferenceCountMismatch
The retained reference count differed from the declared source-row count.
Fields
PrimaryIdentityMismatch
Closure and raw facts used different primary identities.
ResourceReferenceCountMismatch
Closure retained more reference rows than raw facts.
ResourceReferenceMismatch
A closure reference did not match the raw source row at the same position.
ResourceKeyMismatch
A closure target key was not the format-specific normalization of its raw locator.
CompleteCoverageMismatch
Complete closure was claimed without complete, fully mapped raw declarations.
Raw declaration coverage was unavailable but closure claimed retained mappings.
CoverageReasonMismatch
Closure coverage reasons contradicted raw declaration coverage or retained rows.
ClosureIdentityCoverageMismatch
Complete-only identity presence disagreed with closure coverage.
Trait Implementations§
Source§impl Clone for DependencyClosureError
impl Clone for DependencyClosureError
Source§fn clone(&self) -> DependencyClosureError
fn clone(&self) -> DependencyClosureError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DependencyClosureError
impl Debug for DependencyClosureError
Source§impl Display for DependencyClosureError
impl Display for DependencyClosureError
impl Eq for DependencyClosureError
Source§impl Error for DependencyClosureError
impl Error for DependencyClosureError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()