referrerpolicy=no-referrer-when-downgrade
finality_relay

Trait FinalityPipeline

Source
pub trait FinalityPipeline:
    'static
    + Clone
    + Debug
    + Send
    + Sync {
    type Hash: Eq + Clone + Copy + Send + Sync + Debug;
    type Number: BlockNumberBase;
    type FinalityProof: FinalityProof<Self::Hash, Self::Number>;

    const SOURCE_NAME: &'static str;
    const TARGET_NAME: &'static str;
}
Expand description

Base finality pipeline.

Required Associated Constants§

Source

const SOURCE_NAME: &'static str

Name of the finality proofs source.

Source

const TARGET_NAME: &'static str

Name of the finality proofs target.

Required Associated Types§

Source

type Hash: Eq + Clone + Copy + Send + Sync + Debug

Synced headers are identified by this hash.

Source

type Number: BlockNumberBase

Synced headers are identified by this number.

Source

type FinalityProof: FinalityProof<Self::Hash, Self::Number>

Finality proof type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§