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

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

Can process messages from a specific origin.

Required Associated Types

The transport from where a message originates.

Required Methods

Process the given message, using no more than the remaining meter weight to do so.

Returns whether the message was processed.

Implementors