pub struct LuminaPluginManager { /* private fields */ }Expand description
Pengelola Plugin dan Ekstensi Pakem Sandbox (Thread-Safe & Hot-Reloadable)
Implementations§
Source§impl LuminaPluginManager
impl LuminaPluginManager
pub fn new() -> LuminaPluginManager
Sourcepub fn metrics_tracker(&self) -> Arc<PluginMetricsTracker> ⓘ
pub fn metrics_tracker(&self) -> Arc<PluginMetricsTracker> ⓘ
Ambil tracker metrik performa plugin
Sourcepub fn plugin_stats(&self) -> Vec<PluginStats>
pub fn plugin_stats(&self) -> Vec<PluginStats>
Ambil seluruh statistik eksekusi plugin
Sourcepub fn register(&self, plugin: WasmPlugin)
pub fn register(&self, plugin: WasmPlugin)
Daftarkan plugin WASM ke manager
Sourcepub fn register_is_script(&self, name: &str, runner: IsScriptRunner)
pub fn register_is_script(&self, name: &str, runner: IsScriptRunner)
Daftarkan skrip Indonesian Script (.is) yang telah diparsing ke cache
Sourcepub fn get_is_script(&self, name: &str) -> Option<Arc<IsScriptRunner>>
pub fn get_is_script(&self, name: &str) -> Option<Arc<IsScriptRunner>>
Ambil runner Indonesian Script dari cache
Sourcepub fn eval_is_script(
&self,
script_path: &str,
func_name: &str,
args: &[Value],
) -> Result<Value, SandboxError>
pub fn eval_is_script( &self, script_path: &str, func_name: &str, args: &[Value], ) -> Result<Value, SandboxError>
Evaluasi fungsi dari skrip Indonesian Script (.is) dengan input arguments JSON
Sourcepub fn call_filter(
&self,
plugin_name: &str,
func_name: &str,
input: &str,
) -> Result<String, SandboxError>
pub fn call_filter( &self, plugin_name: &str, func_name: &str, input: &str, ) -> Result<String, SandboxError>
Panggil custom filter Blade yang terdaftar di WASM (dengan pelacakan metrik otomatis)
Sourcepub fn call_hook(
&self,
hook: PluginHook,
payload: &str,
) -> Vec<(String, Result<String, SandboxError>)>
pub fn call_hook( &self, hook: PluginHook, payload: &str, ) -> Vec<(String, Result<String, SandboxError>)>
Panggil lifecycle hook pada seluruh plugin yang menyediakan fungsi hook tersebut
Sourcepub fn reload(&self, dir: impl AsRef<Path>) -> Result<usize, SandboxError>
pub fn reload(&self, dir: impl AsRef<Path>) -> Result<usize, SandboxError>
Reload manual seluruh plugin dari direktori
Sourcepub fn start_hot_reload_watcher(
&self,
dir: impl AsRef<Path> + Send + 'static,
interval: Duration,
) -> JoinHandle<()> ⓘ
pub fn start_hot_reload_watcher( &self, dir: impl AsRef<Path> + Send + 'static, interval: Duration, ) -> JoinHandle<()> ⓘ
Jalankan background task asinkron yang memantau direktori plugin untuk hot-reloading otomatis
Sourcepub fn load_directory(
&self,
dir: impl AsRef<Path>,
) -> Result<usize, SandboxError>
pub fn load_directory( &self, dir: impl AsRef<Path>, ) -> Result<usize, SandboxError>
Pindai dan muat semua file .wasm dari sebuah direktori (misal plugins/)
Sourcepub fn list_wasm_plugins(&self) -> Vec<String>
pub fn list_wasm_plugins(&self) -> Vec<String>
Mengambil daftar nama plugin WASM yang sedang aktif di-load
Sourcepub fn list_is_scripts(&self) -> Vec<String>
pub fn list_is_scripts(&self) -> Vec<String>
Mengambil daftar nama skrip Indonesian Script (.is) yang sedang aktif di cache
Sourcepub fn get_metrics(&self) -> SandboxMetrics
pub fn get_metrics(&self) -> SandboxMetrics
Mendapatkan ringkasan metrik sandbox untuk Telescope / Debug Monitor
Trait Implementations§
Source§impl Clone for LuminaPluginManager
impl Clone for LuminaPluginManager
Source§fn clone(&self) -> LuminaPluginManager
fn clone(&self) -> LuminaPluginManager
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for LuminaPluginManager
impl Default for LuminaPluginManager
Source§fn default() -> LuminaPluginManager
fn default() -> LuminaPluginManager
Auto Trait Implementations§
impl Forget for LuminaPluginManager
impl Freeze for LuminaPluginManager
impl Move for LuminaPluginManager
impl RefUnwindSafe for LuminaPluginManager
impl Send for LuminaPluginManager
impl Sync for LuminaPluginManager
impl Unpin for LuminaPluginManager
impl UnsafeUnpin for LuminaPluginManager
impl UnwindSafe for LuminaPluginManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().