Enum pubgrub::error::PubGrubError [−][src]
pub enum PubGrubError<P: Package, V: Version> { NoSolution(DerivationTree<P, V>), ErrorRetrievingDependencies { package: P, version: V, source: Box<dyn Error>, }, DependencyOnTheEmptySet { package: P, version: V, dependent: P, }, SelfDependency { package: P, version: V, }, ErrorChoosingPackageVersion(Box<dyn Error>), ErrorInShouldCancel(Box<dyn Error>), Failure(String), }
Expand description
Errors that may occur while solving dependencies.
Variants
NoSolution(DerivationTree<P, V>)
There is no solution for this set of dependencies.
Error arising when the implementer of DependencyProvider returned an error in the method get_dependencies.
Show fields
Fields of ErrorRetrievingDependencies
package: P
Package whose dependencies we want.
version: V
Version of the package for which we want the dependencies.
source: Box<dyn Error>
Error raised by the implementer of DependencyProvider.
Error arising when the implementer of DependencyProvider returned a dependency on an empty range. This technically means that the package can not be selected, but is clearly some kind of mistake.
Show fields
Error arising when the implementer of DependencyProvider returned a dependency on the requested package. This technically means that the package directly depends on itself, and is clearly some kind of mistake.
Show fields
Error arising when the implementer of DependencyProvider returned an error in the method choose_package_version.
Error arising when the implementer of DependencyProvider returned an error in the method should_cancel.
Failure(String)
Something unexpected happened.
Trait Implementations
Auto Trait Implementations
impl<P, V> !RefUnwindSafe for PubGrubError<P, V>
impl<P, V> !Send for PubGrubError<P, V>
impl<P, V> !Sync for PubGrubError<P, V>
impl<P, V> Unpin for PubGrubError<P, V> where
P: Unpin,
V: Unpin,
impl<P, V> !UnwindSafe for PubGrubError<P, V>