Function qemu_plugin_reset

Source
pub fn qemu_plugin_reset<F>(id: qemu_plugin_id_t, cb: F) -> Result<()>
where F: FnOnce(qemu_plugin_id_t) + Send + Sync + 'static,
Expand description

Reset a plugin

§Arguments

  • id: The plugin ID
  • cb: A callback function that will be called when the plugin has been reset.

§Safety

Do NOT assume that the plugin has been reset once this function returns. Plugins are reset asynchronously, and therefore the given plugin receives callbacks until cb is called.