pub trait XcmpMessageHandler {
// Required method
fn handle_xcmp_messages<'a, I: Iterator<Item = (Id, RelayChainBlockNumber, &'a [u8])>>(
iter: I,
max_weight: Weight,
) -> Weight;
}
Expand description
Something that should be called for each batch of messages received over XCMP.
Required Methods§
Sourcefn handle_xcmp_messages<'a, I: Iterator<Item = (Id, RelayChainBlockNumber, &'a [u8])>>(
iter: I,
max_weight: Weight,
) -> Weight
fn handle_xcmp_messages<'a, I: Iterator<Item = (Id, RelayChainBlockNumber, &'a [u8])>>( iter: I, max_weight: Weight, ) -> Weight
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.