Enum git_topic_stage::StagerError
source · #[non_exhaustive]pub enum StagerError {
Git {
source: GitError,
},
WorkArea {
source: WorkAreaError,
},
InvalidIntegrationBranch {
commit: CommitId,
reason: InvalidCommitReason,
},
DuplicateTopicId {
id: u64,
},
CreateStageRef {
stage: CommitId,
base: CommitId,
output: String,
},
ListStageHistory {
output: String,
},
ExtractMergeInfo {
output: String,
},
InvalidStageMerge {
commit: CommitId,
log_info: String,
},
CannotUnstageBase,
DateParse {
source: ParseError,
},
IdParse {
source: ParseIntError,
},
}
Expand description
Errors which may occur while managing a topic stage branch.
This enum is non_exhaustive
, but cannot be marked as such until it is stable. In the
meantime, there is a hidden variant.
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.
Git
An error occurred when working with Git itself.
WorkArea
Fields
§
source: WorkAreaError
The cause of the error.
An error occurred when working with the workarea.
InvalidIntegrationBranch
Fields
§
reason: InvalidCommitReason
Why the branch is invalid.
The integration branch is invalid.
DuplicateTopicId
A topic with the given ID is already on the stage.
CreateStageRef
Fields
An error occurred when creating a stage ref.
ListStageHistory
An error occurred when listing the stage’s history.
ExtractMergeInfo
An error occurred when extracting topic information from a merge.
InvalidStageMerge
Fields
An invalid merge into the stage was found.
CannotUnstageBase
The base commit cannot be unstaged.
DateParse
Fields
§
source: ParseError
The date parse error.
An invalid commit date was found.
IdParse
Fields
👎Deprecated since 4.1.0: No longer used.
An invalid topic ID was found.
Trait Implementations§
source§impl Debug for StagerError
impl Debug for StagerError
source§impl Display for StagerError
impl Display for StagerError
source§impl Error for StagerError
impl Error for StagerError
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()
source§impl From<GitError> for StagerError
impl From<GitError> for StagerError
source§impl From<WorkAreaError> for StagerError
impl From<WorkAreaError> for StagerError
source§fn from(source: WorkAreaError) -> Self
fn from(source: WorkAreaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StagerError
impl Send for StagerError
impl Sync for StagerError
impl Unpin for StagerError
impl !UnwindSafe for StagerError
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