pub enum ValidationError {
SingletonDependsOnScoped {
singleton: &'static str,
singleton_id: TypeId,
scoped: &'static str,
scoped_id: TypeId,
},
MissingDependency {
service: &'static str,
service_id: TypeId,
dependency: &'static str,
dependency_id: TypeId,
},
CircularDependency {
cycle: Vec<(&'static str, TypeId)>,
},
UnimplementedTrait {
trait_name: &'static str,
implementations: Vec<&'static str>,
},
}Expand description
A validation error that prevents safe DI configuration.
Variants§
SingletonDependsOnScoped
Singleton service depends on scoped service
MissingDependency
Required dependency is not registered
CircularDependency
Circular dependency detected
UnimplementedTrait
Trait registered without implementation
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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