Type Alias astar_runtime::xcm_config::Weigher
source · pub type Weigher = WeightInfoBounds<XcmWeight<Runtime, RuntimeCall>, RuntimeCall, MaxInstructions>;
Aliased Type§
struct Weigher(/* 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>,
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, ()>
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.