referrerpolicy=no-referrer-when-downgrade

Trait MessagesRelayer

Source
pub trait MessagesRelayer: MessagesCliBridge
where Self::Source: ChainWithTransactions + ChainWithRuntimeVersion, AccountIdOf<Self::Source>: From<<AccountKeyPairOf<Self::Source> as Pair>::Public>, AccountIdOf<Self::Target>: From<<AccountKeyPairOf<Self::Target> as Pair>::Public>, BalanceOf<Self::Source>: TryFrom<BalanceOf<Self::Target>>,
{ // Provided methods fn relay_messages<'async_trait>( data: RelayMessagesParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } fn relay_messages_range<'async_trait>( data: RelayMessagesRangeParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } fn relay_messages_delivery_confirmation<'async_trait>( data: RelayMessagesDeliveryConfirmationParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } fn start_relay_guards<'life0, 'async_trait>( target_client: &'life0 (impl 'async_trait + Client<Self::Target>), enable_version_guard: bool, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Trait used for relaying messages between 2 chains.

Provided Methods§

Source

fn relay_messages<'async_trait>( data: RelayMessagesParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Start relaying messages.

Source

fn relay_messages_range<'async_trait>( data: RelayMessagesRangeParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Relay a consequitive range of messages.

Source

fn relay_messages_delivery_confirmation<'async_trait>( data: RelayMessagesDeliveryConfirmationParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Relay a messages delivery confirmation.

Source

fn start_relay_guards<'life0, 'async_trait>( target_client: &'life0 (impl 'async_trait + Client<Self::Target>), enable_version_guard: bool, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Add relay guards if required.

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§