pub struct GuardedNoteMerge {
pub summary: MergeSummary,
pub kept_version: i64,
}Expand description
The outcome of a guarded merge. kept_version is the survivor’s stored
version after the merge, so the caller can merge the next duplicate into the
same survivor without reading it again. A dry run commits nothing and
reports the version the survivor currently has.
Fields§
§summary: MergeSummary§kept_version: i64Trait Implementations§
Source§impl Clone for GuardedNoteMerge
impl Clone for GuardedNoteMerge
Auto Trait Implementations§
impl Forget for GuardedNoteMerge
impl Freeze for GuardedNoteMergewhere
*const u8 is !null: Freeze,
PhantomData<MergeEdgePreimage>: Freeze,
PhantomData<MergeEdgeConflictPreimage>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<MergeKeyMove>: Freeze,
PhantomData<MergeKey>: Freeze,
PhantomData<MergeKeyConflict>: Freeze,
impl Move for GuardedNoteMerge
impl RefUnwindSafe for GuardedNoteMerge
impl Send for GuardedNoteMerge
impl Sync for GuardedNoteMerge
impl Unpin for GuardedNoteMerge
impl UnsafeUnpin for GuardedNoteMergewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<MergeEdgePreimage>: UnsafeUnpin,
PhantomData<MergeEdgeConflictPreimage>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MergeKeyMove>: UnsafeUnpin,
PhantomData<MergeKey>: UnsafeUnpin,
PhantomData<MergeKeyConflict>: UnsafeUnpin,
impl UnwindSafe for GuardedNoteMerge
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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