Trait xcm_executor::traits::WeightBounds[][src]

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