pub struct ConflictError {
pub location: String,
pub expected: String,
pub actual: String,
}Expand description
Error when CAS (compare-and-set) check fails during patching.
Fields§
§location: StringLocation of the conflict (e.g., “offset 42” or “line 7”)
expected: StringExpected content at that location
actual: StringActual content found at that location
Trait Implementations§
Source§impl Clone for ConflictError
impl Clone for ConflictError
Source§fn clone(&self) -> ConflictError
fn clone(&self) -> ConflictError
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 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()
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