Enum pubgrub::error::PubGrubError
source · pub enum PubGrubError<DP>where
DP: DependencyProvider,{
NoSolution(DerivationTree<DP::P, DP::VS>),
ErrorRetrievingDependencies {
package: DP::P,
version: DP::V,
source: DP::Err,
},
SelfDependency {
package: DP::P,
version: DP::V,
},
ErrorChoosingPackageVersion(DP::Err),
ErrorInShouldCancel(DP::Err),
Failure(String),
}
Expand description
Errors that may occur while solving dependencies.
Variants§
NoSolution(DerivationTree<DP::P, DP::VS>)
There is no solution for this set of dependencies.
ErrorRetrievingDependencies
Error arising when the implementer of DependencyProvider returned an error in the method get_dependencies.
Fields
§
source: DP::Err
Error raised by the implementer of DependencyProvider.
SelfDependency
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.
Fields
ErrorChoosingPackageVersion(DP::Err)
Error arising when the implementer of DependencyProvider returned an error in the method choose_version.
ErrorInShouldCancel(DP::Err)
Error arising when the implementer of DependencyProvider returned an error in the method should_cancel.
Failure(String)
Something unexpected happened.
Trait Implementations§
source§impl<DP> Debug for PubGrubError<DP>where
DP: DependencyProvider,
impl<DP> Debug for PubGrubError<DP>where
DP: DependencyProvider,
source§impl<DP> Display for PubGrubError<DP>where
DP: DependencyProvider,
impl<DP> Display for PubGrubError<DP>where
DP: DependencyProvider,
source§impl<DP> Error for PubGrubError<DP>
impl<DP> Error for PubGrubError<DP>
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()
Auto Trait Implementations§
impl<DP> Freeze for PubGrubError<DP>where
<DP as DependencyProvider>::Err: Freeze,
<DP as DependencyProvider>::P: Freeze,
<DP as DependencyProvider>::V: Freeze,
<DP as DependencyProvider>::VS: Freeze,
impl<DP> RefUnwindSafe for PubGrubError<DP>where
<DP as DependencyProvider>::Err: RefUnwindSafe,
<DP as DependencyProvider>::P: RefUnwindSafe,
<DP as DependencyProvider>::V: RefUnwindSafe,
<DP as DependencyProvider>::VS: RefUnwindSafe,
impl<DP> Send for PubGrubError<DP>where
<DP as DependencyProvider>::Err: Send,
<DP as DependencyProvider>::P: Sync + Send,
<DP as DependencyProvider>::V: Sync + Send,
<DP as DependencyProvider>::VS: Sync + Send,
impl<DP> Sync for PubGrubError<DP>where
<DP as DependencyProvider>::Err: Sync,
<DP as DependencyProvider>::P: Sync + Send,
<DP as DependencyProvider>::V: Sync + Send,
<DP as DependencyProvider>::VS: Sync + Send,
impl<DP> Unpin for PubGrubError<DP>where
<DP as DependencyProvider>::Err: Unpin,
<DP as DependencyProvider>::P: Unpin,
<DP as DependencyProvider>::V: Unpin,
<DP as DependencyProvider>::VS: Unpin,
impl<DP> UnwindSafe for PubGrubError<DP>where
<DP as DependencyProvider>::Err: UnwindSafe,
<DP as DependencyProvider>::P: UnwindSafe + RefUnwindSafe,
<DP as DependencyProvider>::V: UnwindSafe + RefUnwindSafe,
<DP as DependencyProvider>::VS: UnwindSafe + RefUnwindSafe,
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