pub enum ErrorKind {
Show 36 variants
BrokenRepoFormat {
input: String,
},
CliParseFail(Fail),
OpenUrlFailure {
url: String,
msg: String,
},
GitLabDiffNotSupported,
BitbucketDiffNotSupported,
AzureDevOpsNotSupported,
NoUserInPath {
path: String,
},
NoRepoInPath {
path: String,
},
UnknownHostingService {
url: String,
},
BrokenUrl {
url: String,
msg: String,
},
PullReqNotSupported {
service: String,
},
GitHubStatusFailure {
status: StatusCode,
msg: String,
},
HttpClientError(Error),
IoError(Error),
GitCommandError {
stderr: String,
args: Vec<OsString>,
},
UnexpectedRemoteName(String),
GitObjectNotFound {
kind: &'static str,
object: String,
msg: String,
},
GitRootDirNotFound {
cwd: PathBuf,
stderr: String,
},
WrongNumberOfArgs {
expected: ExpectedNumberOfArgs,
actual: usize,
kind: String,
},
DiffDotsNotFound,
DiffHandIsEmpty {
input: String,
},
FileDirNotInRepo {
repo_root: PathBuf,
path: PathBuf,
},
PageParseError {
args: Vec<String>,
attempts: Vec<(&'static str, Error)>,
},
InvalidIssueNumberFormat,
LineSpecifiedForDir(PathBuf),
EnvLoadError(Error),
NoLocalRepoFound {
operation: String,
},
NoSearchResult {
query: String,
},
ArgsNotAllowed {
flag: &'static str,
args: Vec<String>,
},
GheTokenRequired,
BlameWithoutFilePath,
CannotBlameDirectory {
dir: String,
},
UserBrowseCommandFailed {
cmd: String,
url: String,
msg: String,
},
SpecifiedDirNotExist {
dir: String,
},
BranchNameEmpty,
InvalidUser {
name: String,
},
}
Variants§
BrokenRepoFormat
CliParseFail(Fail)
OpenUrlFailure
GitLabDiffNotSupported
BitbucketDiffNotSupported
AzureDevOpsNotSupported
NoUserInPath
NoRepoInPath
UnknownHostingService
BrokenUrl
PullReqNotSupported
GitHubStatusFailure
HttpClientError(Error)
IoError(Error)
GitCommandError
UnexpectedRemoteName(String)
GitObjectNotFound
GitRootDirNotFound
WrongNumberOfArgs
DiffDotsNotFound
DiffHandIsEmpty
FileDirNotInRepo
PageParseError
InvalidIssueNumberFormat
LineSpecifiedForDir(PathBuf)
EnvLoadError(Error)
NoLocalRepoFound
NoSearchResult
ArgsNotAllowed
GheTokenRequired
BlameWithoutFilePath
CannotBlameDirectory
UserBrowseCommandFailed
SpecifiedDirNotExist
BranchNameEmpty
InvalidUser
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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