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

Determine the weight of an XCM message.

Required Methods§

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

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

Implementors§