pub struct QuickJsPluginRuntime { /* private fields */ }Expand description
Manages loading and lifecycle of QuickJS plugins.
Implementations§
Source§impl QuickJsPluginRuntime
impl QuickJsPluginRuntime
pub fn new(storage_root: PathBuf) -> Self
pub fn load_plugin(&mut self, config: QuickJsPluginConfig) -> Result<(), String>
pub fn into_lifecycle_plugins(&mut self) -> Vec<Box<dyn LifecyclePlugin>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for QuickJsPluginRuntime
impl RefUnwindSafe for QuickJsPluginRuntime
impl Send for QuickJsPluginRuntime
impl Sync for QuickJsPluginRuntime
impl Unpin for QuickJsPluginRuntime
impl UnsafeUnpin for QuickJsPluginRuntime
impl UnwindSafe for QuickJsPluginRuntime
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