pub struct MergeError {
pub kind: MergeErrorKind,
pub context: MergeContext,
}Expand description
Structured merge error with kind and context
Fields§
§kind: MergeErrorKind§context: MergeContextImplementations§
Source§impl MergeError
impl MergeError
pub fn new(kind: MergeErrorKind, context: MergeContext) -> Self
pub fn fast_forward_conflict( spec_id: &str, spec_branch: &str, main_branch: &str, stderr: &str, ) -> Self
pub fn merge_conflict( spec_id: &str, spec_branch: &str, main_branch: &str, ) -> Self
pub fn branch_not_found(spec_id: &str, spec_branch: &str) -> Self
pub fn main_branch_not_found(main_branch: &str) -> Self
pub fn spec_status_not_mergeable(spec_id: &str, status: &str) -> Self
pub fn no_branch_for_spec(spec_id: &str) -> Self
pub fn worktree_already_exists( spec_id: &str, worktree_path: &str, branch: &str, ) -> Self
pub fn no_commits_found(spec_id: &str, branch: &str) -> Self
pub fn driver_members_incomplete(driver_id: &str, incomplete: &[String]) -> Self
pub fn member_merge_failed( driver_id: &str, member_id: &str, error: &str, ) -> Self
pub fn generic_merge_failed( spec_id: &str, branch: &str, main_branch: &str, error: &str, ) -> Self
pub fn rebase_conflict( spec_id: &str, branch: &str, conflicting_files: &[String], ) -> Self
pub fn merge_stopped(spec_id: &str) -> Self
pub fn rebase_stopped(spec_id: &str) -> Self
Trait Implementations§
Source§impl Clone for MergeError
impl Clone for MergeError
Source§fn clone(&self) -> MergeError
fn clone(&self) -> MergeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MergeError
impl Debug for MergeError
Auto Trait Implementations§
impl Freeze for MergeError
impl RefUnwindSafe for MergeError
impl Send for MergeError
impl Sync for MergeError
impl Unpin for MergeError
impl UnwindSafe for MergeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.