#[non_exhaustive]pub enum ResolveError {
DependenciesMissing,
Validation(ValidationError),
TypeMissing {
typename: &'static str,
},
Ctor(Box<dyn Error + Send + Sync + 'static>),
Impl(ImplErrors),
}Expand description
Errors happening during resolving of types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DependenciesMissing
Some of the required dependencies are missing.
Validation(ValidationError)
Validation failed. Check the underlying error.
TypeMissing
Type is missing, possibly never registered.
Ctor(Box<dyn Error + Send + Sync + 'static>)
The constructor returned an error.
Impl(ImplErrors)
An error in the implementation happened.
Implementations§
Source§impl ResolveError
impl ResolveError
Sourcepub fn is_ctor_err(&self) -> bool
pub fn is_ctor_err(&self) -> bool
Returns true if the underlying error was produced by a failure in one of the constructors registered.
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
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 From<ImplErrors> for ResolveError
impl From<ImplErrors> for ResolveError
Source§fn from(source: ImplErrors) -> Self
fn from(source: ImplErrors) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for ResolveError
impl From<ValidationError> for ResolveError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolveError
impl !RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl !UnwindSafe for ResolveError
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