referrerpolicy=no-referrer-when-downgrade

XcmpMessageSource

Trait XcmpMessageSource 

Source
pub trait XcmpMessageSource {
    // Required method
    fn take_outbound_messages(
        maximum_channels: usize,
        excluded_recipients: &[ParaId],
    ) -> Vec<(ParaId, Vec<u8>)>;
}
Expand description

A means of figuring out what outbound XCMP messages should be being sent.

Required Methods§

Source

fn take_outbound_messages( maximum_channels: usize, excluded_recipients: &[ParaId], ) -> Vec<(ParaId, Vec<u8>)>

Take outbound XCMP messages from the queue.

excluded_recipients contains para IDs that must be skipped.

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 XcmpMessageSource for ()

Source§

fn take_outbound_messages( _maximum_channels: usize, _excluded_recipients: &[ParaId], ) -> Vec<(ParaId, Vec<u8>)>

Implementors§