pub trait SubstrateMessageLane:
'static
+ Clone
+ Debug
+ Send
+ Sync {
type SourceChain: ChainWithMessages + ChainWithTransactions;
type TargetChain: ChainWithMessages + ChainWithTransactions;
type LaneId: Clone + Copy + Debug + Codec + EncodeLike + Send + Sync + Labeled + TryFrom<Vec<u8>> + Default;
type ReceiveMessagesProofCallBuilder: ReceiveMessagesProofCallBuilder<Self>;
type ReceiveMessagesDeliveryProofCallBuilder: ReceiveMessagesDeliveryProofCallBuilder<Self>;
type SourceBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::SourceChain>>;
type TargetBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::TargetChain>>;
}
Expand description
Substrate -> Substrate messages synchronization pipeline.
Required Associated Types§
Sourcetype SourceChain: ChainWithMessages + ChainWithTransactions
type SourceChain: ChainWithMessages + ChainWithTransactions
Messages of this chain are relayed to the TargetChain
.
Sourcetype TargetChain: ChainWithMessages + ChainWithTransactions
type TargetChain: ChainWithMessages + ChainWithTransactions
Messages from the SourceChain
are dispatched on this chain.
Sourcetype LaneId: Clone + Copy + Debug + Codec + EncodeLike + Send + Sync + Labeled + TryFrom<Vec<u8>> + Default
type LaneId: Clone + Copy + Debug + Codec + EncodeLike + Send + Sync + Labeled + TryFrom<Vec<u8>> + Default
Lane identifier type.
Sourcetype ReceiveMessagesProofCallBuilder: ReceiveMessagesProofCallBuilder<Self>
type ReceiveMessagesProofCallBuilder: ReceiveMessagesProofCallBuilder<Self>
How receive messages proof call is built?
Sourcetype ReceiveMessagesDeliveryProofCallBuilder: ReceiveMessagesDeliveryProofCallBuilder<Self>
type ReceiveMessagesDeliveryProofCallBuilder: ReceiveMessagesDeliveryProofCallBuilder<Self>
How receive messages delivery proof call is built?
Sourcetype SourceBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::SourceChain>>
type SourceBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::SourceChain>>
How batch calls are built at the source chain?
Sourcetype TargetBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::TargetChain>>
type TargetBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::TargetChain>>
How batch calls are built at the target chain?
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.