pub enum DependencySourceError {
InvalidSource {
reason: &'static str,
},
VersionRequirement(VersionRequirementError),
GitCommit(GitCommitError),
InvalidUrl(String),
InvalidGitPath(GitModulePathError),
}Expand description
An error parsing a DependencySource.
Variants§
InvalidSource
The dependency does not name a valid source.
The dependency must specify exactly one of path for a local-path
source, or git with exactly one of version, tag, branch, or
commit for a Git source. The reason describes which rule was
violated by the input.
VersionRequirement(VersionRequirementError)
A version requirement on a Git dependency was invalid.
GitCommit(GitCommitError)
A Git commit selector was invalid.
InvalidUrl(String)
The Git URL did not parse.
InvalidGitPath(GitModulePathError)
The path field on a Git dependency was invalid.
Trait Implementations§
Source§impl Debug for DependencySourceError
impl Debug for DependencySourceError
Source§impl Display for DependencySourceError
impl Display for DependencySourceError
Source§impl Error for DependencySourceError
impl Error for DependencySourceError
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 From<DependencySourceError> for ManifestError
impl From<DependencySourceError> for ManifestError
Source§fn from(source: DependencySourceError) -> Self
fn from(source: DependencySourceError) -> Self
Converts to this type from the input type.
Source§impl From<GitCommitError> for DependencySourceError
impl From<GitCommitError> for DependencySourceError
Source§fn from(source: GitCommitError) -> Self
fn from(source: GitCommitError) -> Self
Converts to this type from the input type.
Source§impl From<GitModulePathError> for DependencySourceError
impl From<GitModulePathError> for DependencySourceError
Source§fn from(source: GitModulePathError) -> Self
fn from(source: GitModulePathError) -> Self
Converts to this type from the input type.
Source§impl From<VersionRequirementError> for DependencySourceError
impl From<VersionRequirementError> for DependencySourceError
Source§fn from(source: VersionRequirementError) -> Self
fn from(source: VersionRequirementError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DependencySourceError
impl RefUnwindSafe for DependencySourceError
impl Send for DependencySourceError
impl Sync for DependencySourceError
impl Unpin for DependencySourceError
impl UnsafeUnpin for DependencySourceError
impl UnwindSafe for DependencySourceError
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