MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / finish

Method finish

atomic-core/src/crdt/apply/context.rs:633–640  ·  view source on GitHub ↗

Consumes the context and returns the final outcome. # Example ```rust use atomic_core::crdt::apply::{ApplyContext, ApplyOptions}; let mut context = ApplyContext::new(ApplyOptions::default()); context.record_trunk_created(); let outcome = context.finish(); assert!(outcome.is_success()); ```

(self)

Source from the content-addressed store, hash-verified

631 /// assert!(outcome.is_success());
632 /// ```
633 pub fn finish(self) -> ApplyOutcome {
634 ApplyOutcome {
635 stats: self.stats,
636 conflicts: self.conflicts,
637 success: !self.failed,
638 failure_reason: self.failure_reason,
639 }
640 }
641}
642
643// ApplyOutcome

Callers 13

test_outcome_successFunction · 0.45
test_outcome_into_statsFunction · 0.45
test_outcome_into_partsFunction · 0.45
test_outcome_cloneFunction · 0.45
fmtMethod · 0.45

Calls

no outgoing calls