pub trait Plugin:
Send
+ Sync
+ 'static {
// Provided method
fn health_check(&self) -> HealthStatus { ... }
}Expand description
Base trait shared by all Malbox plugins (host and guest).
The only method is health_check, which
defaults to reporting ready. Override it if your plugin needs warm-up
time or depends on an external resource.
Provided Methods§
Sourcefn health_check(&self) -> HealthStatus
fn health_check(&self) -> HealthStatus
Return the plugin’s current health status. Defaults to ready.