Enum git_workarea::WorkAreaError
source · #[non_exhaustive]pub enum WorkAreaError {
CreateTempDirectory {
source: Error,
},
CreateWorkTree {
source: Error,
},
SubmoduleSetup {
intent: SubmoduleIntent,
submodule: String,
source: Error,
},
Git {
source: GitError,
},
}
Expand description
Errors which may occur when using a workarea.
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.
CreateTempDirectory
Failed to create a temporary directory for the workarea.
CreateWorkTree
Failed to create a directory to hold the work tree.
SubmoduleSetup
Fields
§
intent: SubmoduleIntent
The action that failed.
Failure to set up submodules in the workarea.
Git
A git operation failed.
Trait Implementations§
source§impl Debug for WorkAreaError
impl Debug for WorkAreaError
source§impl Display for WorkAreaError
impl Display for WorkAreaError
source§impl Error for WorkAreaError
impl Error for WorkAreaError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WorkAreaError
impl Send for WorkAreaError
impl Sync for WorkAreaError
impl Unpin for WorkAreaError
impl !UnwindSafe for WorkAreaError
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