pub struct HotReloadManager { /* private fields */ }Expand description
Manager for all hot-reloadable plugins
Implementations§
Source§impl HotReloadManager
impl HotReloadManager
Sourcepub fn register(
&self,
name: &str,
instance: Arc<WasmPluginInstance>,
manifest: PluginManifest,
) -> KernelResult<()>
pub fn register( &self, name: &str, instance: Arc<WasmPluginInstance>, manifest: PluginManifest, ) -> KernelResult<()>
Register a new hot-reloadable plugin
Sourcepub fn upgrade(
&self,
name: &str,
wasm_bytes: &[u8],
new_manifest: PluginManifest,
) -> KernelResult<()>
pub fn upgrade( &self, name: &str, wasm_bytes: &[u8], new_manifest: PluginManifest, ) -> KernelResult<()>
Upgrade a plugin
Sourcepub fn unregister(&self, name: &str) -> KernelResult<()>
pub fn unregister(&self, name: &str) -> KernelResult<()>
Unregister a plugin
Sourcepub fn all_stats(&self) -> Vec<(String, HotReloadStats)>
pub fn all_stats(&self) -> Vec<(String, HotReloadStats)>
Get stats for all plugins
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HotReloadManager
impl !RefUnwindSafe for HotReloadManager
impl Send for HotReloadManager
impl Sync for HotReloadManager
impl Unpin for HotReloadManager
impl UnsafeUnpin for HotReloadManager
impl !UnwindSafe for HotReloadManager
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> 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>
Converts
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>
Converts
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 more