pub trait Plugin: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn version(&self) -> &'static str;
fn description(&self) -> &'static str;
fn execute(&self, ctx: &PluginContext) -> PluginResult;
// Provided methods
fn supports_offline(&self) -> bool { ... }
fn requires_rpc(&self) -> bool { ... }
}Expand description
Core trait that all built-in plugins must implement.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description.
Sourcefn execute(&self, ctx: &PluginContext) -> PluginResult
fn execute(&self, ctx: &PluginContext) -> PluginResult
Execute the plugin’s analysis logic and return findings.
Provided Methods§
Sourcefn supports_offline(&self) -> bool
fn supports_offline(&self) -> bool
Whether this plugin can run in offline mode.
Sourcefn requires_rpc(&self) -> bool
fn requires_rpc(&self) -> bool
Whether this plugin requires RPC access.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".