Skip to main content

ContextCheckpointMergePolicyV1

Trait ContextCheckpointMergePolicyV1 

Source
pub trait ContextCheckpointMergePolicyV1 {
    type Error;

    // Required method
    fn merge(
        &self,
        ancestor: &ContextCheckpointV1,
        left: &ContextCheckpointV1,
        right: &ContextCheckpointV1,
    ) -> Result<ContextCheckpointV1, Self::Error>;
}
Expand description

Seam for the downstream branch-merge slice.

Required Associated Types§

Source

type Error

Error surfaced by the merge slice.

Required Methods§

Source

fn merge( &self, ancestor: &ContextCheckpointV1, left: &ContextCheckpointV1, right: &ContextCheckpointV1, ) -> Result<ContextCheckpointV1, Self::Error>

Merge two checkpoint branches against their common ancestor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§