pub trait ServiceQueues {
    type OverweightMessageAddress;

    fn service_queues(weight_limit: Weight) -> Weight;

    fn execute_overweight(
        _weight_limit: Weight,
        _address: Self::OverweightMessageAddress
    ) -> Result<Weight, ExecuteOverweightError> { ... } }
Expand description

Can service queues and execute overweight messages.

Required Associated Types

Addresses a specific overweight message.

Required Methods

Service all message queues in some fair manner.

  • weight_limit: The maximum amount of dynamic weight that this call can use.

Returns the dynamic weight used by this call; is never greater than weight_limit.

Provided Methods

Executes a message that could not be executed by Self::service_queues() because it was temporarily overweight.