pub enum ComponentInstanceProviderError {
NoPrimaryInstance(TypeId),
IncompatibleComponent(TypeId),
NoNamedInstance(String),
UnrecognizedScope(String),
DependencyCycle(TypeId),
}Expand description
Errors related to creating and managing components.
Variants§
NoPrimaryInstance(TypeId)
IncompatibleComponent(TypeId)
NoNamedInstance(String)
UnrecognizedScope(String)
DependencyCycle(TypeId)
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
1.30.0 · 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()
source§impl Ord for ComponentInstanceProviderError
impl Ord for ComponentInstanceProviderError
source§fn cmp(&self, other: &ComponentInstanceProviderError) -> Ordering
fn cmp(&self, other: &ComponentInstanceProviderError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ComponentInstanceProviderError> for ComponentInstanceProviderError
impl PartialEq<ComponentInstanceProviderError> for ComponentInstanceProviderError
source§fn eq(&self, other: &ComponentInstanceProviderError) -> bool
fn eq(&self, other: &ComponentInstanceProviderError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ComponentInstanceProviderError> for ComponentInstanceProviderError
impl PartialOrd<ComponentInstanceProviderError> for ComponentInstanceProviderError
source§fn partial_cmp(
&self,
other: &ComponentInstanceProviderError
) -> Option<Ordering>
fn partial_cmp( &self, other: &ComponentInstanceProviderError ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more