pub enum ConflictError {
Soft {
conflict: MaybeConflict,
local: SyncStatus,
remote: SyncStatus,
},
Hard,
}Expand description
Error created whan a conflict is detected.
Variants§
Soft
Error generated when a soft conflict was detected.
A soft conflict may be resolved by searching for a common ancestor commit and merging changes since the common ancestor commit.
Fields
§
conflict: MaybeConflictConflict information.
§
local: SyncStatusLocal information sent to the remote.
§
remote: SyncStatusRemote information in the server reply.
Hard
Error generated when a hard conflict was detected.
A hard conflict is triggered after a soft conflict attempted to scan proofs on a remote and was unable to find a common ancestor commit.
Trait Implementations§
Source§impl Debug for ConflictError
impl Debug for ConflictError
Source§impl Display for ConflictError
impl Display for ConflictError
Source§impl Error for ConflictError
impl Error for ConflictError
1.30.0 · 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()
Source§impl From<ConflictError> for Error
impl From<ConflictError> for Error
Source§fn from(source: ConflictError) -> Self
fn from(source: ConflictError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConflictError
impl RefUnwindSafe for ConflictError
impl Send for ConflictError
impl Sync for ConflictError
impl Unpin for ConflictError
impl UnwindSafe for ConflictError
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> 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> 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.