pub enum RepositoryDiscoveryError {
Ignore {
root: PathBuf,
source: Error,
},
OutsideRoot {
root: PathBuf,
path: PathBuf,
},
}Expand description
Failure while applying repository-contained .gitignore files during discovery.
Variants§
Ignore
Directory traversal or an enabled ignore file failed.
Fields
OutsideRoot
A walker result unexpectedly escaped its configured root.
Trait Implementations§
Source§impl Debug for RepositoryDiscoveryError
impl Debug for RepositoryDiscoveryError
Source§impl Display for RepositoryDiscoveryError
impl Display for RepositoryDiscoveryError
Source§impl Error for RepositoryDiscoveryError
impl Error for RepositoryDiscoveryError
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<RepositoryDiscoveryError> for ConfigError
impl From<RepositoryDiscoveryError> for ConfigError
Source§fn from(source: RepositoryDiscoveryError) -> Self
fn from(source: RepositoryDiscoveryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RepositoryDiscoveryError
impl !UnwindSafe for RepositoryDiscoveryError
impl Freeze for RepositoryDiscoveryError
impl Send for RepositoryDiscoveryError
impl Sync for RepositoryDiscoveryError
impl Unpin for RepositoryDiscoveryError
impl UnsafeUnpin for RepositoryDiscoveryError
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