#[non_exhaustive]pub enum NoIndexError {
PathNotAccessible {
path: String,
},
HashCollision,
}Expand description
Failure modes specific to diff_paths.
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.
PathNotAccessible
A path could not be read (missing or permission denied).
HashCollision
SHA-1 collision detection rejected blob content while hashing a path.
Trait Implementations§
Source§impl Clone for NoIndexError
impl Clone for NoIndexError
Source§impl Debug for NoIndexError
impl Debug for NoIndexError
Source§impl Display for NoIndexError
impl Display for NoIndexError
impl Eq for NoIndexError
Source§impl Error for NoIndexError
impl Error for NoIndexError
1.30.0 · 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<NoIndexError> for Error
impl From<NoIndexError> for Error
Source§fn from(value: NoIndexError) -> Self
fn from(value: NoIndexError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NoIndexError
impl PartialEq for NoIndexError
impl StructuralPartialEq for NoIndexError
Auto Trait Implementations§
impl Freeze for NoIndexError
impl RefUnwindSafe for NoIndexError
impl Send for NoIndexError
impl Sync for NoIndexError
impl Unpin for NoIndexError
impl UnsafeUnpin for NoIndexError
impl UnwindSafe for NoIndexError
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