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>
where W: XcmWeightInfo<C>, C: Decode + GetDispatchInfo, M: Get<u32>, Instruction<C>: GetWeight<W>,

§

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, ()>

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