Skip to main content

ResolutionReportError

Enum ResolutionReportError 

Source
pub enum ResolutionReportError {
Show 30 variants ForeignUnitHandle, ForeignDefinitionHandle, ForeignReferenceHandle, UnitCapacityExceeded { limit: u32, }, DefinitionCapacityExceeded { limit: u32, }, ReferenceCapacityExceeded { limit: u32, }, ResolutionCapacityExceeded { limit: u32, }, DuplicateResolution { reference: u32, }, UnknownUnit { unit: u32, }, UnknownDefinition { definition: u32, }, UnknownReference { reference: u32, }, NonDenseId { collection: ReportCollection, position: u32, id: u32, }, UnsortedEntries { collection: ReportCollection, position: u32, }, DuplicateUnitKey { key: Box<str>, }, UnitLanguageMismatch { collection: ReportCollection, position: u32, unit: u32, claimed: Language, unit_language: Language, }, ForeignParentDefinition { definition: u32, parent: u32, }, ForeignEnclosingDefinition { reference: u32, enclosing: u32, }, DefinitionParentCycle { definition: u32, }, MissingResolution { reference: u32, }, DuplicateCandidate { reference: u32, definition: u32, }, UnsortedCandidates { reference: u32, position: u32, }, DuplicateGap { reference: u32, gap: ResolutionGap, }, UnsortedGaps { reference: u32, position: u32, }, MixedCandidateCertainty { reference: u32, }, ResolvedCandidateCount { reference: u32, candidates: u32, }, ResolvedWithGaps { reference: u32, }, EmptyResolution { reference: u32, }, InvalidSourcePath { path: Box<str>, }, ReversedSiteSpan { path: Box<str>, }, EmptySiteSpan { path: Box<str>, },
}
Expand description

A rejected resolution report, or a rejected write into one.

Variants§

§

ForeignUnitHandle

A unit handle another builder issued.

§

ForeignDefinitionHandle

A definition handle another builder issued.

§

ForeignReferenceHandle

A reference handle another builder issued.

§

UnitCapacityExceeded

The configured or fixed-width unit capacity is reached.

Fields

§limit: u32

The capacity that refused the insertion.

§

DefinitionCapacityExceeded

The configured or fixed-width definition capacity is reached.

Fields

§limit: u32

The capacity that refused the insertion.

§

ReferenceCapacityExceeded

The configured or fixed-width reference capacity is reached.

Fields

§limit: u32

The capacity that refused the insertion.

§

ResolutionCapacityExceeded

The configured or fixed-width resolution-record capacity is reached.

A document may state more records than it states references, so this ceiling is reached by a decoded report rather than by a writer.

Fields

§limit: u32

The capacity that refused the record.

§

DuplicateResolution

More than one record names one reference.

Fields

§reference: u32

The reference named twice.

§

UnknownUnit

A definition or reference names a unit the report does not contain.

Fields

§unit: u32

The absent unit identifier.

§

UnknownDefinition

A parent, enclosing definition, or candidate names an absent definition.

Fields

§definition: u32

The absent definition identifier.

§

UnknownReference

A record names a reference the report does not contain.

Fields

§reference: u32

The absent reference identifier.

§

NonDenseId

An identifier does not equal its own sorted slice position.

Fields

§collection: ReportCollection

The collection holding the entry.

§position: u32

The entry’s position in the collection.

§id: u32

The identifier the entry carried.

§

UnsortedEntries

A collection is not in its stable structural order.

Fields

§collection: ReportCollection

The collection holding the entry.

§position: u32

The position that follows a greater predecessor.

§

DuplicateUnitKey

Two units share one stable key.

Fields

§key: Box<str>

The repeated key.

§

UnitLanguageMismatch

A definition or reference contradicts its unit’s language.

The offender is named by its own coordinates, so a bad definition and a bad reference at two positions never produce one value.

Fields

§collection: ReportCollection

The collection holding the offending record.

§position: u32

The offender’s position in that collection.

§unit: u32

The unit whose language was contradicted.

§claimed: Language

The language the record claimed.

§unit_language: Language

The language the unit states.

§

ForeignParentDefinition

A parent definition belongs to another unit.

Fields

§definition: u32

The child definition.

§parent: u32

The parent in the other unit.

§

ForeignEnclosingDefinition

An enclosing definition belongs to another unit.

Fields

§reference: u32

The reference.

§enclosing: u32

The enclosing definition in the other unit.

§

DefinitionParentCycle

The definition-parent relation contains a cycle.

Fields

§definition: u32

A definition on the cycle.

§

MissingResolution

A reference carries no resolution record.

Fields

§reference: u32

The unrecorded reference.

§

DuplicateCandidate

One record names one definition twice.

Fields

§reference: u32

The record’s reference.

§definition: u32

The repeated candidate definition.

§

UnsortedCandidates

A record’s candidates are out of order.

Fields

§reference: u32

The record’s reference.

§position: u32

The position that follows a greater predecessor.

§

DuplicateGap

One record names one gap twice.

Fields

§reference: u32

The record’s reference.

§gap: ResolutionGap

The repeated gap.

§

UnsortedGaps

A record’s gaps are out of order.

Fields

§reference: u32

The record’s reference.

§position: u32

The position that follows a greater predecessor.

§

MixedCandidateCertainty

A record mixes resolved and possible candidates.

Fields

§reference: u32

The record’s reference.

§

ResolvedCandidateCount

A resolved record does not name exactly one definition.

Fields

§reference: u32

The record’s reference.

§candidates: u32

How many candidates the record carried.

§

ResolvedWithGaps

A resolved record carries a gap.

Fields

§reference: u32

The record’s reference.

§

EmptyResolution

A candidate-free record carries no gap.

Fields

§reference: u32

The record’s reference.

§

InvalidSourcePath

A span names a path that is not normalized repository-relative.

Fields

§path: Box<str>

The rejected path.

§

ReversedSiteSpan

A span ends before it starts.

Fields

§path: Box<str>

The span’s path.

§

EmptySiteSpan

A span covers no source.

Fields

§path: Box<str>

The span’s path.

Trait Implementations§

Source§

impl Clone for ResolutionReportError

Source§

fn clone(&self) -> ResolutionReportError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResolutionReportError

Source§

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

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

impl Display for ResolutionReportError

Source§

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

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

impl Eq for ResolutionReportError

Source§

impl Error for ResolutionReportError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for ResolutionReportError

Source§

fn eq(&self, other: &ResolutionReportError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ResolutionReportError

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

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.