pub trait Module:
Debug
+ Send
+ Sync {
// Required method
fn info(&self) -> ModuleInfo;
// Provided methods
fn available(&self) -> bool { ... }
fn run(&self, _parameters: &Value) -> Result<Value, Error> { ... }
}Expand description
A module that can be registered.
Required Methods§
Sourcefn info(&self) -> ModuleInfo
fn info(&self) -> ModuleInfo
Description.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".