pub enum Error {
GitCommandFailed {
stderr: String,
args: Vec<String>,
},
CommandCannotRun(Error),
BrokenUrl {
url: String,
msg: String,
},
CannotDetect {
reason: String,
},
}
Expand description
Error caused by APIs in detect_git_service crate.
Variants§
GitCommandFailed
Error raised when underlying git
execution has failed.
Fields
CommandCannotRun(Error)
Error raised when a shell command cannot be run as child process.
BrokenUrl
Error raised when trying to parse a broken Git URL.
CannotDetect
Error raised when this library could not find any Git hosting service from Git URL of the repository.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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