Skip to main content

DynPluginManifest

Trait DynPluginManifest 

Source
pub trait DynPluginManifest: Send + Sync {
    // Required method
    fn http_section(&self) -> Option<HttpSectionView>;
}
Expand description

Type-erased view of a plugin’s manifest sufficient for router construction. The real NexoPlugin trait lives in nexo-core; pulling it into this crate would create a circular dep. The caller (daemon) walks wire.plugin_handles and wraps each handle in a small impl of this trait OR — simpler — passes a Vec<(plugin_id, mount_prefix, timeout)> directly to PluginHttpRouter::register in a loop.

We provide the trait as documentation for the contract; the daemon uses the direct register() loop in practice.

Required Methods§

Implementors§