Trait XcmpMessageHandler

Source
pub trait XcmpMessageHandler {
    // Required method
    fn handle_xcmp_messages<'a, I>(iter: I, max_weight: Weight) -> Weight
       where I: Iterator<Item = (Id, u32, &'a [u8])>;
}
Expand description

Something that should be called for each batch of messages received over XCMP.

Required Methods§

Source

fn handle_xcmp_messages<'a, I>(iter: I, max_weight: Weight) -> Weight
where I: Iterator<Item = (Id, u32, &'a [u8])>,

Handle some incoming XCMP messages (note these are the big one-per-block aggregate messages).

Also, process messages up to some max_weight.

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.

Implementations on Foreign Types§

Source§

impl XcmpMessageHandler for ()

Source§

fn handle_xcmp_messages<'a, I>(iter: I, _max_weight: Weight) -> Weight
where I: Iterator<Item = (Id, u32, &'a [u8])>,

Source§

impl<T> XcmpMessageHandler for Pallet<T>
where T: Config,

Source§

fn handle_xcmp_messages<'a, I>(iter: I, max_weight: Weight) -> Weight
where I: Iterator<Item = (Id, u32, &'a [u8])>,

Source§

impl<T> XcmpMessageHandler for Pallet<T>
where T: Config,

Source§

fn handle_xcmp_messages<'a, I>(iter: I, max_weight: Weight) -> Weight
where I: Iterator<Item = (Id, u32, &'a [u8])>,

Implementors§