Enum gitpatcher::regenerate_patches::PatchError
source · [−]pub enum PatchError {
PatchedRepoInvalidState {
state: RepositoryState,
},
InvalidPatchName {
name: String,
},
PatchFormatFailed(PatchFormatError),
MissingPatchDir {
patch_dir: PathBuf,
cause: Error,
},
Git(Error),
Io(Error),
}
Variants
PatchedRepoInvalidState
Fields
state: RepositoryState
The patched repo was in an invalid RepositoryState
InvalidPatchName
Fields
name: String
PatchFormatFailed(PatchFormatError)
MissingPatchDir
Git(Error)
An unexpected error occurred using git
Io(Error)
Trait Implementations
sourceimpl Debug for PatchError
impl Debug for PatchError
sourceimpl Display for PatchError
impl Display for PatchError
sourceimpl From<PatchFormatError> for PatchError
impl From<PatchFormatError> for PatchError
sourcefn from(cause: PatchFormatError) -> Self
fn from(cause: PatchFormatError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PatchError
impl Send for PatchError
impl Sync for PatchError
impl Unpin for PatchError
impl UnwindSafe for PatchError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more