pub enum ComposeError {
UnmatchedDependencyName {
component_id: String,
dependency_name: DependencyName,
},
DependencyConflicts {
component_id: String,
conflicts: Vec<(String, Vec<DependencyName>)>,
},
MissingExport {
dependency_name: DependencyName,
export_name: String,
import_name: String,
},
PrepareError(Error),
EncodeError(Error),
}Expand description
Represents an error that can occur when composing dependencies.
Variants§
UnmatchedDependencyName
A dependency name does not match any import names.
DependencyConflicts
A component has dependency conflicts.
MissingExport
Dependency doesn’t contain an export to satisfy the import.
PrepareError(Error)
An error occurred when building the composition graph
EncodeError(Error)
An error occurred while encoding the composition graph.
Trait Implementations§
Source§impl Debug for ComposeError
impl Debug for ComposeError
Source§impl Display for ComposeError
impl Display for ComposeError
Source§impl Error for ComposeError
impl Error for ComposeError
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()
Auto Trait Implementations§
impl Freeze for ComposeError
impl RefUnwindSafe for ComposeError
impl Send for ComposeError
impl Sync for ComposeError
impl Unpin for ComposeError
impl UnwindSafe for ComposeError
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> 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