pub enum ComponentInstanceProviderError {
NoPrimaryInstance(TypeId),
IncompatibleComponent(TypeId),
NoNamedInstance(String),
UnrecognizedScope(String),
DependencyCycle(TypeId),
ConstructorError(ErrorPtr),
}Expand description
Errors related to creating and managing components.
Variants§
NoPrimaryInstance(TypeId)
Primary instance of a given component is not specified, if many components exist for a given type, or not component registered at all.
IncompatibleComponent(TypeId)
Tired to case one type to another, incompatible one.
NoNamedInstance(String)
Cannot find component with given name.
UnrecognizedScope(String)
Component registered for unknown scope - possibly missing associated ScopeFactory.
DependencyCycle(TypeId)
Found a cycle when creating given type.
ConstructorError(ErrorPtr)
Custom constructor returned an error.
Trait Implementations§
source§impl Clone for ComponentInstanceProviderError
impl Clone for ComponentInstanceProviderError
source§fn clone(&self) -> ComponentInstanceProviderError
fn clone(&self) -> ComponentInstanceProviderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Error for ComponentInstanceProviderError
impl Error for ComponentInstanceProviderError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()