pub trait WeightBounds<RuntimeCall> {
    // Required methods
    fn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>;
    fn instr_weight(
        instruction: &Instruction<RuntimeCall>
    ) -> Result<Weight, ()>;
}
Expand description

Determine the weight of an XCM message.

Required Methods§

source

fn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>

Return the maximum amount of weight that an attempted execution of this message could consume.

source

fn instr_weight(instruction: &Instruction<RuntimeCall>) -> Result<Weight, ()>

Return the maximum amount of weight that an attempted execution of this instruction could consume.

Implementors§

impl<W, C, M> WeightBounds<C> for WeightInfoBounds<W, C, M>where W: XcmWeightInfo<C>, C: Decode + GetDispatchInfo, M: Get<u32>, Instruction<C>: GetWeight<W>,

impl<T: Get<Weight>, C: Decode + GetDispatchInfo, M: Get<u32>> WeightBounds<C> for FixedWeightBounds<T, C, M>