referrerpolicy=no-referrer-when-downgrade
pub trait Network {
    type Relay: RelayChain;
    type Bridge: Bridge;

Show 17 methods // Required methods fn name() -> &'static str; fn init(); fn reset(); fn para_ids() -> Vec<u32>; fn relay_block_number() -> u32; fn set_relay_block_number(number: u32); fn process_messages(); fn has_unprocessed_messages() -> bool; fn process_downward_messages(); fn process_horizontal_messages(); fn process_upward_messages(); fn process_bridged_messages(); fn hrmp_channel_parachain_inherent_data( para_id: u32, relay_parent_number: u32, parent_head_data: HeadData, ) -> ParachainInherentData; // Provided methods fn send_horizontal_messages<I>(to_para_id: u32, iter: I) where I: Iterator<Item = (Id, u32, Vec<u8>)> { ... } fn send_upward_message(from_para_id: u32, msg: Vec<u8>) { ... } fn send_downward_messages( to_para_id: u32, iter: impl Iterator<Item = (u32, Vec<u8>)>, ) { ... } fn send_bridged_messages(msg: BridgeMessage) { ... }
}

Required Associated Types§

type Relay: RelayChain

type Bridge: Bridge

Required Methods§

fn name() -> &'static str

fn init()

fn reset()

fn para_ids() -> Vec<u32>

fn relay_block_number() -> u32

fn set_relay_block_number(number: u32)

fn process_messages()

fn has_unprocessed_messages() -> bool

fn process_downward_messages()

fn process_horizontal_messages()

fn process_upward_messages()

fn process_bridged_messages()

fn hrmp_channel_parachain_inherent_data( para_id: u32, relay_parent_number: u32, parent_head_data: HeadData, ) -> ParachainInherentData

Provided Methods§

fn send_horizontal_messages<I>(to_para_id: u32, iter: I)
where I: Iterator<Item = (Id, u32, Vec<u8>)>,

fn send_upward_message(from_para_id: u32, msg: Vec<u8>)

fn send_downward_messages( to_para_id: u32, iter: impl Iterator<Item = (u32, Vec<u8>)>, )

fn send_bridged_messages(msg: BridgeMessage)

Object Safety§

This trait is not object safe.

Implementors§