referrerpolicy=no-referrer-when-downgrade

Trait messages_relay::message_lane::MessageLane

source ·
pub trait MessageLane: 'static + Clone + Send + Sync {
    type LaneId: Clone + Send + Sync + Labeled;
    type MessagesProof: Clone + Debug + Send + Sync;
    type MessagesReceivingProof: Clone + Debug + Send + Sync;
    type SourceChainBalance: AtLeast32BitUnsigned + Clone + Copy + Debug + PartialOrd + Sub<Output = Self::SourceChainBalance> + SaturatingAdd + Zero + Send + Sync;
    type SourceHeaderNumber: BlockNumberBase;
    type SourceHeaderHash: Clone + Debug + Default + PartialEq + Send + Sync;
    type TargetHeaderNumber: BlockNumberBase;
    type TargetHeaderHash: Clone + Debug + Default + PartialEq + Send + Sync;

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

One-way message lane.

Required Associated Types§

source

type LaneId: Clone + Send + Sync + Labeled

Lane identifier type.

source

type MessagesProof: Clone + Debug + Send + Sync

Messages proof.

source

type MessagesReceivingProof: Clone + Debug + Send + Sync

Messages receiving proof.

source

type SourceChainBalance: AtLeast32BitUnsigned + Clone + Copy + Debug + PartialOrd + Sub<Output = Self::SourceChainBalance> + SaturatingAdd + Zero + Send + Sync

The type of the source chain token balance, that is used to:

  1. pay transaction fees;
  2. pay message delivery and dispatch fee;
  3. pay relayer rewards.
source

type SourceHeaderNumber: BlockNumberBase

Number of the source header.

source

type SourceHeaderHash: Clone + Debug + Default + PartialEq + Send + Sync

Hash of the source header.

source

type TargetHeaderNumber: BlockNumberBase

Number of the target header.

source

type TargetHeaderHash: Clone + Debug + Default + PartialEq + Send + Sync

Hash of the target header.

Required Associated Constants§

source

const SOURCE_NAME: &'static str

Name of the messages source.

source

const TARGET_NAME: &'static str

Name of the messages target.

Object Safety§

This trait is not object safe.

Implementors§