Type Alias moonbeam_runtime::xcm_config::XcmWeigher
source · pub type XcmWeigher = WeightInfoBounds<XcmWeight<Runtime, RuntimeCall>, RuntimeCall, MaxInstructions>;
Expand description
Xcm Weigher shared between multiple Xcm-related configs.
Aliased Type§
struct XcmWeigher(/* private fields */);
Trait Implementations
§impl<W, C, M> WeightBounds<C> for WeightInfoBounds<W, C, M>
impl<W, C, M> WeightBounds<C> for WeightInfoBounds<W, C, M>
§fn weight(message: &mut Xcm<C>) -> Result<Weight, ()>
fn weight(message: &mut Xcm<C>) -> Result<Weight, ()>
Return the maximum amount of weight that an attempted execution of this message could
consume.
§fn instr_weight(instruction: &mut Instruction<C>) -> Result<Weight, ()>
fn instr_weight(instruction: &mut Instruction<C>) -> Result<Weight, ()>
Return the maximum amount of weight that an attempted execution of this instruction could
consume.