pub enum VersionError {
Io(Error),
Parse(String),
Git(String),
UnreachableBaseline {
tag: String,
},
}Expand description
Errors produced by version operations.
Variants§
Io(Error)
Filesystem operation failed.
Parse(String)
Version field could not be found or parsed.
Git(String)
A git command failed.
UnreachableBaseline
D-10: the highest semver tag in the repository is not reachable from
HEAD — refuse rather than silently computing a version below the
real release history (T-25-04). Typically means a develop -> main
sync was squashed instead of merged (999.52), or the tag was created
on an orphan ref never merged anywhere.
Trait Implementations§
Source§impl Debug for VersionError
impl Debug for VersionError
Source§impl Display for VersionError
impl Display for VersionError
Source§impl Error for VersionError
impl Error for VersionError
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<Error> for VersionError
impl From<Error> for VersionError
Source§impl From<VersionError> for HookError
impl From<VersionError> for HookError
Source§fn from(source: VersionError) -> Self
fn from(source: VersionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VersionError
impl !UnwindSafe for VersionError
impl Freeze for VersionError
impl Send for VersionError
impl Sync for VersionError
impl Unpin for VersionError
impl UnsafeUnpin for VersionError
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