referrerpolicy=no-referrer-when-downgrade
pallet_message_queue

Trait ForceSetHead

Source
pub trait ForceSetHead<O> {
    // Required method
    fn force_set_head(weight: &mut WeightMeter, origin: &O) -> Result<bool, ()>;
}
Expand description

Allows to force the processing head to a specific queue.

Required Methods§

Source

fn force_set_head(weight: &mut WeightMeter, origin: &O) -> Result<bool, ()>

Set the ServiceHead to origin.

This function:

  • Err: Queue did not exist, not enough weight or other error.
  • Ok(true): The service head was updated.
  • Ok(false): The service head was not updated since the queue is empty.

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.

Implementors§

Source§

impl<T: Config> ForceSetHead<<<T as Config>::MessageProcessor as ProcessMessage>::Origin> for Pallet<T>