pub struct PluginManager { /* private fields */ }Expand description
WASM bindings for plugin framework
Implementations§
Source§impl PluginManager
impl PluginManager
pub fn new() -> Self
Sourcepub fn enabled_plugins(&self) -> String
pub fn enabled_plugins(&self) -> String
Get list of enabled plugins as JSON
Sourcepub fn list_plugins(&self) -> String
pub fn list_plugins(&self) -> String
Get list of all plugins as JSON
Sourcepub fn get_plugin_metadata(&self, plugin_id: &str) -> Option<String>
pub fn get_plugin_metadata(&self, plugin_id: &str) -> Option<String>
Get plugin metadata as JSON
Trait Implementations§
Source§impl Default for PluginManager
impl Default for PluginManager
Source§impl From<PluginManager> for JsValue
impl From<PluginManager> for JsValue
Source§fn from(value: PluginManager) -> Self
fn from(value: PluginManager) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PluginManager
impl FromWasmAbi for PluginManager
Source§impl IntoWasmAbi for PluginManager
impl IntoWasmAbi for PluginManager
Source§impl LongRefFromWasmAbi for PluginManager
impl LongRefFromWasmAbi for PluginManager
Source§impl OptionFromWasmAbi for PluginManager
impl OptionFromWasmAbi for PluginManager
Source§impl OptionIntoWasmAbi for PluginManager
impl OptionIntoWasmAbi for PluginManager
Source§impl RefFromWasmAbi for PluginManager
impl RefFromWasmAbi for PluginManager
Source§type Anchor = RcRef<PluginManager>
type Anchor = RcRef<PluginManager>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for PluginManager
impl RefMutFromWasmAbi for PluginManager
Source§impl TryFromJsValue for PluginManager
impl TryFromJsValue for PluginManager
Source§impl VectorFromWasmAbi for PluginManager
impl VectorFromWasmAbi for PluginManager
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PluginManager]>
Source§impl VectorIntoWasmAbi for PluginManager
impl VectorIntoWasmAbi for PluginManager
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PluginManager]>) -> Self::Abi
Source§impl WasmDescribeVector for PluginManager
impl WasmDescribeVector for PluginManager
impl SupportsConstructor for PluginManager
impl SupportsInstanceProperty for PluginManager
impl SupportsStaticProperty for PluginManager
Auto Trait Implementations§
impl Freeze for PluginManager
impl RefUnwindSafe for PluginManager
impl Send for PluginManager
impl Sync for PluginManager
impl Unpin for PluginManager
impl UnsafeUnpin for PluginManager
impl UnwindSafe for PluginManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.