pub trait ProcessMessage {
    type Origin: FullCodec + MaxEncodedLen + Clone + Eq + PartialEq + TypeInfo + Debug;

    fn process_message(
message: &[u8],
origin: Self::Origin,
weight_limit: Weight
) -> Result<(bool, Weight), ProcessMessageError>; }
Expand description

Can process messages from a specific origin.

Required Associated Types§

source

type Origin: FullCodec + MaxEncodedLen + Clone + Eq + PartialEq + TypeInfo + Debug

The transport from where a message originates.

Required Methods§

source

fn process_message(
message: &[u8],
origin: Self::Origin,
weight_limit: Weight
) -> Result<(bool, Weight), ProcessMessageError>

Process the given message, using no more than weight_limit in weight to do so.

Implementors§