Trait staging_xcm_executor::traits::WeightBounds
source · pub trait WeightBounds<RuntimeCall> {
// Required methods
fn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>;
fn instr_weight(
instruction: &mut Instruction<RuntimeCall>,
) -> Result<Weight, ()>;
}
Expand description
Determine the weight of an XCM message.
Required Methods§
sourcefn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>
fn weight(message: &mut Xcm<RuntimeCall>) -> Result<Weight, ()>
Return the maximum amount of weight that an attempted execution of this message could consume.
sourcefn instr_weight(
instruction: &mut Instruction<RuntimeCall>,
) -> Result<Weight, ()>
fn instr_weight( instruction: &mut Instruction<RuntimeCall>, ) -> Result<Weight, ()>
Return the maximum amount of weight that an attempted execution of this instruction could consume.
Object Safety§
This trait is not object safe.