pub struct MergeExplanation {
pub result: Result<Tree, Error>,
pub trace: MergeTrace,
}Expand description
Result and trace from Prolly::merge_explain
and its async counterpart when the async-store feature is enabled.
The merge result is kept inside this struct so callers can inspect
MergeTrace even when the merge fails with Error::Conflict or a store
error.
Fields§
§result: Result<Tree, Error>The merge result.
trace: MergeTraceStructured trace events collected while planning and applying the merge.
Implementations§
Source§impl MergeExplanation
impl MergeExplanation
Sourcepub fn into_result(self) -> Result<Tree, Error>
pub fn into_result(self) -> Result<Tree, Error>
Consume the explanation and return only the merge result.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MergeExplanation
impl !UnwindSafe for MergeExplanation
impl Freeze for MergeExplanation
impl Send for MergeExplanation
impl Sync for MergeExplanation
impl Unpin for MergeExplanation
impl UnsafeUnpin for MergeExplanation
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more