referrerpolicy=no-referrer-when-downgrade

Trait BridgeInitializer

Source
pub trait BridgeInitializer: CliBridgeBase
where <Self::Target as ChainBase>::AccountId: From<<AccountKeyPairOf<Self::Target> as Pair>::Public>,
{ type Engine: Engine<Self::Source>; // Required method fn encode_init_bridge( init_data: <Self::Engine as Engine<Self::Source>>::InitializationData, ) -> <Self::Target as Chain>::Call; // Provided method fn init_bridge<'async_trait>( data: InitBridgeParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } }
Expand description

Trait used for bridge initializing.

Required Associated Types§

Source

type Engine: Engine<Self::Source>

The finality engine used by the source chain.

Required Methods§

Source

fn encode_init_bridge( init_data: <Self::Engine as Engine<Self::Source>>::InitializationData, ) -> <Self::Target as Chain>::Call

Get the encoded call to init the bridge.

Provided Methods§

Source

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

Initialize the bridge.

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§