#[non_exhaustive]pub enum BuildIssue {
Cycle {
path: Vec<&'static str>,
},
MissingDependency {
path: Vec<&'static str>,
},
CaptiveDependency {
path: Vec<&'static str>,
},
}Expand description
A single problem found while building a service collection.
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.
Cycle
The services in path depend on each other; the first and last entries
are the same service.
MissingDependency
The first service in path depends on the second, which has no
registration. Reported only with
validate_dependencies.
CaptiveDependency
The singleton first in path reaches the scoped service last in it,
directly or through transients, and would hold on to one scope’s
instance. Reported only with
validate_scopes.
Trait Implementations§
Source§impl Clone for BuildIssue
impl Clone for BuildIssue
Source§impl Debug for BuildIssue
impl Debug for BuildIssue
Source§impl Display for BuildIssue
impl Display for BuildIssue
impl Eq for BuildIssue
Source§impl PartialEq for BuildIssue
impl PartialEq for BuildIssue
impl StructuralPartialEq for BuildIssue
Auto Trait Implementations§
impl Freeze for BuildIssue
impl RefUnwindSafe for BuildIssue
impl Send for BuildIssue
impl Sync for BuildIssue
impl Unpin for BuildIssue
impl UnsafeUnpin for BuildIssue
impl UnwindSafe for BuildIssue
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