pub fn update_plugin(&self, update: PluginUpdate) -> Result<bool, JsValue> {
        match &update {
            PluginUpdate::Missing => Ok(false),
            PluginUpdate::SetDefault => self.set_plugin(None),
            PluginUpdate::Update(plugin) => self.set_plugin(Some(plugin)),
        }
    }
/// Set the active plugin to the plugin registerd as `name`, or the default
/// plugin if `None` is provided.
///
/// # Arguments
/// - `update` The `PluginUpdate` behavior to set.
Set the active plugin to the plugin registerd as `name`, or the default
plugin if `None` is provided.
Set the active plugin to the plugin registerd as ` name ` or the default plugin if ` None ` is provided .
pub fn update_plugin(&self, update: PluginUpdate) -> Result<bool, JsValue> {
        match &update {
            PluginUpdate::Missing => Ok(false),
            PluginUpdate::SetDefault => self.set_plugin(None),
            PluginUpdate::Update(plugin) => self.set_plugin(Some(plugin)),
        }
    }
pub fn update_plugin ( & self , update : PluginUpdate ) -> Result < bool , JsValue > { match & update { PluginUpdate :: Missing => Ok ( false ) , PluginUpdate :: SetDefault => self . set_plugin ( None ) , PluginUpdate :: Update ( plugin ) => self . set_plugin ( Some ( plugin ) ) , } }
Set the active plugin to the plugin registerd as `name`, or the default
plugin if `None` is provided.
Set the active plugin to the plugin registerd as ` name ` or the default plugin if ` None ` is provided .
&self
update
PluginUpdate
&self
update
PluginUpdate
The `PluginUpdate` behavior to set.
The ` PluginUpdate ` behavior to set .