Trait xcm_executor::traits::WeightBounds
source · 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§
sourcefn weight(message: &mut Xcm<Call>) -> Result<Weight, ()>
fn weight(message: &mut Xcm<Call>) -> Result<Weight, ()>
Return the maximum amount of weight that an attempted execution of this message could consume.
sourcefn instr_weight(instruction: &Instruction<Call>) -> Result<Weight, ()>
fn instr_weight(instruction: &Instruction<Call>) -> Result<Weight, ()>
Return the maximum amount of weight that an attempted execution of this instruction could consume.