#[non_exhaustive]pub enum VcsDetectError {
PathNotFound {
repo_root: Utf8PathBuf,
},
NotADirectory {
repo_root: Utf8PathBuf,
},
Io {
path: Utf8PathBuf,
source: Error,
},
NotFound {
repo_root: Utf8PathBuf,
},
Env(VcsEnvError),
}Expand description
An error that occurs during VCS detection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PathNotFound
The provided repository root does not exist.
Fields
§
repo_root: Utf8PathBufThe path that was provided.
NotADirectory
The provided repository root is not a directory.
Fields
§
repo_root: Utf8PathBufThe path that was provided.
Io
An I/O error occurred while probing the repository root.
Fields
§
path: Utf8PathBufThe path being checked when the error occurred.
NotFound
Neither .git nor .jj was found at the repository root.
Fields
§
repo_root: Utf8PathBufThe repository root that was searched.
Env(VcsEnvError)
A VCS environment variable is not valid UTF-8.
Trait Implementations§
Source§impl Debug for VcsDetectError
impl Debug for VcsDetectError
Source§impl Display for VcsDetectError
impl Display for VcsDetectError
Source§impl Error for VcsDetectError
impl Error for VcsDetectError
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<VcsDetectError> for MaterializeError
impl From<VcsDetectError> for MaterializeError
Source§fn from(source: VcsDetectError) -> Self
fn from(source: VcsDetectError) -> Self
Converts to this type from the input type.
Source§impl From<VcsEnvError> for VcsDetectError
impl From<VcsEnvError> for VcsDetectError
Source§fn from(source: VcsEnvError) -> Self
fn from(source: VcsEnvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VcsDetectError
impl !RefUnwindSafe for VcsDetectError
impl Send for VcsDetectError
impl Sync for VcsDetectError
impl Unpin for VcsDetectError
impl UnsafeUnpin for VcsDetectError
impl !UnwindSafe for VcsDetectError
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