pub trait CheckSuspension {
// Required method
fn is_suspended<Call>(
origin: &Location,
instructions: &mut [Instruction<Call>],
max_weight: Weight,
properties: &mut Properties,
) -> bool;
}
Expand description
Trait to determine whether the execution engine is suspended from executing a given XCM.
The trait method is given the same parameters as ShouldExecute::should_execute
, so that the
implementer will have all the context necessary to determine whether or not to suspend the
XCM executor.
Can be chained together in tuples to have multiple rounds of checks. If all of the tuple elements returns false, then execution is not suspended. Otherwise, execution is suspended if any of the tuple elements returns true.
Required Methods§
fn is_suspended<Call>( origin: &Location, instructions: &mut [Instruction<Call>], max_weight: Weight, properties: &mut Properties, ) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.