Skip to main content

ruest/core/
plugin.rs

1use super::{ModuleContext, RuestApplication};
2
3/// Plugin extension point (auth, cache, telemetry, etc.).
4pub trait Plugin: Send + Sync {
5    fn name(&self) -> &'static str;
6
7    fn apply(&self, app: &mut RuestApplication, ctx: &mut ModuleContext)
8        -> Result<(), super::CoreError>;
9}