Trait cfg_traits::liquidity_pools::MessageProcessor
source · pub trait MessageProcessor {
type Message;
// Required methods
fn process(msg: Self::Message) -> (DispatchResult, Weight);
fn max_processing_weight(msg: &Self::Message) -> Weight;
}
Expand description
The trait required for processing dequeued messages.
Required Associated Types§
Required Methods§
sourcefn max_processing_weight(msg: &Self::Message) -> Weight
fn max_processing_weight(msg: &Self::Message) -> Weight
Max weight that processing a message can take.
Object Safety§
This trait is not object safe.