pub enum PubGrubError<DP: DependencyProvider> {
NoSolution(NoSolutionError<DP>),
ErrorRetrievingDependencies {
package: DP::P,
version: DP::V,
source: DP::Err,
},
ErrorChoosingVersion {
package: DP::P,
source: DP::Err,
},
ErrorInShouldCancel(DP::Err),
}Expand description
Errors that may occur while solving dependencies.
Variants§
NoSolution(NoSolutionError<DP>)
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::ErrError raised by the implementer of DependencyProvider.
ErrorChoosingVersion
Error arising when the implementer of DependencyProvider returned an error in the method
choose_version.
Fields
§
source: DP::ErrError raised by the implementer of DependencyProvider.
ErrorInShouldCancel(DP::Err)
Error arising when the implementer of DependencyProvider
returned an error in the method should_cancel.
Trait Implementations§
Source§impl<DP> Debug for PubGrubError<DP>where
DP: DependencyProvider,
impl<DP> Debug for PubGrubError<DP>where
DP: DependencyProvider,
Source§impl<DP: DependencyProvider> Display for PubGrubError<DP>
impl<DP: DependencyProvider> Display for PubGrubError<DP>
Source§impl<DP: DependencyProvider> Error for PubGrubError<DP>
impl<DP: DependencyProvider> Error for PubGrubError<DP>
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<DP: DependencyProvider> From<DerivationTree<<DP as DependencyProvider>::P, <DP as DependencyProvider>::VS, <DP as DependencyProvider>::M>> for PubGrubError<DP>
impl<DP: DependencyProvider> From<DerivationTree<<DP as DependencyProvider>::P, <DP as DependencyProvider>::VS, <DP as DependencyProvider>::M>> for PubGrubError<DP>
Source§fn from(err: NoSolutionError<DP>) -> Self
fn from(err: NoSolutionError<DP>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<DP> Freeze for PubGrubError<DP>where
<DP as DependencyProvider>::P: Freeze,
<DP as DependencyProvider>::V: Freeze,
<DP as DependencyProvider>::Err: Freeze,
<DP as DependencyProvider>::VS: Freeze,
<DP as DependencyProvider>::M: Freeze,
impl<DP> RefUnwindSafe for PubGrubError<DP>where
<DP as DependencyProvider>::P: RefUnwindSafe,
<DP as DependencyProvider>::V: RefUnwindSafe,
<DP as DependencyProvider>::Err: RefUnwindSafe,
<DP as DependencyProvider>::VS: RefUnwindSafe,
<DP as DependencyProvider>::M: RefUnwindSafe,
impl<DP> Send for PubGrubError<DP>where
<DP as DependencyProvider>::P: Send + Sync,
<DP as DependencyProvider>::V: Send + Sync,
<DP as DependencyProvider>::Err: Send,
<DP as DependencyProvider>::VS: Send + Sync,
<DP as DependencyProvider>::M: Send + Sync,
impl<DP> Sync for PubGrubError<DP>where
<DP as DependencyProvider>::P: Sync + Send,
<DP as DependencyProvider>::V: Sync + Send,
<DP as DependencyProvider>::Err: Sync,
<DP as DependencyProvider>::VS: Sync + Send,
<DP as DependencyProvider>::M: Sync + Send,
impl<DP> Unpin for PubGrubError<DP>where
<DP as DependencyProvider>::P: Unpin,
<DP as DependencyProvider>::V: Unpin,
<DP as DependencyProvider>::Err: Unpin,
<DP as DependencyProvider>::VS: Unpin,
<DP as DependencyProvider>::M: Unpin,
impl<DP> UnwindSafe for PubGrubError<DP>where
<DP as DependencyProvider>::P: UnwindSafe + RefUnwindSafe,
<DP as DependencyProvider>::V: UnwindSafe + RefUnwindSafe,
<DP as DependencyProvider>::Err: UnwindSafe,
<DP as DependencyProvider>::VS: UnwindSafe + RefUnwindSafe,
<DP as DependencyProvider>::M: 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