pub enum ZervError {
VcsNotFound(String),
NoTagsFound,
InvalidFormat(String),
InvalidVersion(String),
CommandFailed(String),
Io(Error),
Regex(String),
}Expand description
Main error type for the zerv library
Variants§
VcsNotFound(String)
VCS not found or not available
NoTagsFound
No tags found matching pattern
InvalidFormat(String)
Invalid version format
InvalidVersion(String)
Invalid version string
CommandFailed(String)
Command execution failed
Io(Error)
IO error
Regex(String)
Regex error
Trait Implementations§
Source§impl Error for ZervError
impl Error for ZervError
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()
Auto Trait Implementations§
impl Freeze for ZervError
impl !RefUnwindSafe for ZervError
impl Send for ZervError
impl Sync for ZervError
impl Unpin for ZervError
impl !UnwindSafe for ZervError
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