pub enum ComposeError<E> {
UndeclaredContribution {
target: ContributionTargetId,
qualifier: QualifierId,
contributor: ModuleId,
},
MissingContribution {
target: ContributionTargetId,
qualifier: QualifierId,
contributor: ModuleId,
},
AmbiguousQualifier {
target: ContributionTargetId,
qualifiers: Vec<QualifierId>,
},
Target(E),
}Expand description
A mismatch between supplied contributions and the frozen process, or a target failure.
Variants§
UndeclaredContribution
An included module supplied a contribution the frozen process does not declare.
Fields
§
target: ContributionTargetIdThe target being composed.
§
qualifier: QualifierIdThe target qualifier.
MissingContribution
A contributor declared in the frozen process supplied no contribution.
Fields
§
target: ContributionTargetIdThe target being composed.
§
qualifier: QualifierIdThe target qualifier.
AmbiguousQualifier
FrozenProcess::compose_inferred found edges into the target under
several qualifiers, or none, so it cannot pick one.
Fields
§
target: ContributionTargetIdThe target being composed.
§
qualifiers: Vec<QualifierId>The qualifiers the process’s edges use, sorted; empty for none.
Target(E)
The target rejected the selected contributions.
Trait Implementations§
Source§impl<E: Debug> Debug for ComposeError<E>
impl<E: Debug> Debug for ComposeError<E>
Source§impl<E: Display> Display for ComposeError<E>
impl<E: Display> Display for ComposeError<E>
impl<E: Eq> Eq for ComposeError<E>
Source§impl<E: Error + 'static> Error for ComposeError<E>
impl<E: Error + 'static> Error for ComposeError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E: PartialEq> PartialEq for ComposeError<E>
impl<E: PartialEq> PartialEq for ComposeError<E>
impl<E: PartialEq> StructuralPartialEq for ComposeError<E>
Auto Trait Implementations§
impl<E> Freeze for ComposeError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ComposeError<E>where
E: RefUnwindSafe,
impl<E> Send for ComposeError<E>where
E: Send,
impl<E> Sync for ComposeError<E>where
E: Sync,
impl<E> Unpin for ComposeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ComposeError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ComposeError<E>where
E: UnwindSafe,
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