pub struct MutationRegistry { /* private fields */ }Expand description
Registry of all available mutations (builtin + plugins)
Provides unified access to both built-in Rust mutations and dynamically loaded WASM plugins.
Implementations§
Source§impl MutationRegistry
impl MutationRegistry
Sourcepub fn new() -> Result<Self, RegistryError>
pub fn new() -> Result<Self, RegistryError>
Create a new registry with plugin support
Sourcepub fn load_plugin(
&mut self,
wasm_bytes: &[u8],
) -> Result<String, RegistryError>
pub fn load_plugin( &mut self, wasm_bytes: &[u8], ) -> Result<String, RegistryError>
Load a single plugin from bytes
Sourcepub fn load_plugins_from_dir(
&mut self,
dir: &Path,
) -> Result<Vec<String>, RegistryError>
pub fn load_plugins_from_dir( &mut self, dir: &Path, ) -> Result<Vec<String>, RegistryError>
Load all plugins from a directory
Sourcepub fn get_plugin(&self, name: &str) -> Option<&LoadedPlugin>
pub fn get_plugin(&self, name: &str) -> Option<&LoadedPlugin>
Get a loaded plugin by name
Sourcepub fn get_plugin_mut(&mut self, name: &str) -> Option<&mut LoadedPlugin>
pub fn get_plugin_mut(&mut self, name: &str) -> Option<&mut LoadedPlugin>
Get a mutable reference to a loaded plugin
Sourcepub fn has_plugin(&self, name: &str) -> bool
pub fn has_plugin(&self, name: &str) -> bool
Check if a plugin is loaded
Sourcepub fn plugin_names(&self) -> Vec<&str>
pub fn plugin_names(&self) -> Vec<&str>
Get all loaded plugin names
Sourcepub fn plugin_info(&self) -> Vec<PluginInfo>
pub fn plugin_info(&self) -> Vec<PluginInfo>
Get plugin info for display
Auto Trait Implementations§
impl !RefUnwindSafe for MutationRegistry
impl !Sync for MutationRegistry
impl !UnwindSafe for MutationRegistry
impl Freeze for MutationRegistry
impl Send for MutationRegistry
impl Unpin for MutationRegistry
impl UnsafeUnpin for MutationRegistry
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> 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>
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