pub enum GitToolingError {
GitCommand {
command: String,
status: ExitStatus,
stderr: String,
},
GitOutputUtf8 {
command: String,
source: FromUtf8Error,
},
NotAGitRepository {
path: PathBuf,
},
NonRelativePath {
path: PathBuf,
},
PathEscapesRepository {
path: PathBuf,
},
PathPrefix(StripPrefixError),
Walkdir(Error),
Io(Error),
}Expand description
Errors returned while managing git worktree snapshots.
Variants§
GitCommand
GitOutputUtf8
NotAGitRepository
NonRelativePath
PathEscapesRepository
PathPrefix(StripPrefixError)
Walkdir(Error)
Io(Error)
Trait Implementations§
Source§impl Debug for GitToolingError
impl Debug for GitToolingError
Source§impl Display for GitToolingError
impl Display for GitToolingError
Source§impl Error for GitToolingError
impl Error for GitToolingError
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 GitToolingError
impl From<Error> for GitToolingError
Source§fn from(source: WalkdirError) -> Self
fn from(source: WalkdirError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for GitToolingError
impl From<Error> for GitToolingError
Source§impl From<StripPrefixError> for GitToolingError
impl From<StripPrefixError> for GitToolingError
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GitToolingError
impl !RefUnwindSafe for GitToolingError
impl Send for GitToolingError
impl Sync for GitToolingError
impl Unpin for GitToolingError
impl !UnwindSafe for GitToolingError
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