#[non_exhaustive]pub enum WorkAreaError {
CreateTempDirectory {
source: Error,
},
CreateWorkTree {
source: Error,
},
SubmoduleSetup {
intent: SubmoduleIntent,
submodule: String,
source: Error,
},
Git {
source: GitError,
},
CreateTempDirectoryPath {
directory: PathBuf,
source: Error,
},
}
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
👎Deprecated since 4.3.0: Use
CreateTempDirectoryPath
insteadFailed to create a temporary directory for the workarea.
Fields
CreateWorkTree
Failed to create a directory to hold the work tree.
SubmoduleSetup
Failure to set up submodules in the workarea.
Fields
§
intent: SubmoduleIntent
The action that failed.
Git
A git operation failed.
CreateTempDirectoryPath
Failed to create a temporary directory for the workarea.
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)>
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()
Auto Trait Implementations§
impl Freeze for WorkAreaError
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