pub fn mount_router(
defs: &'static [NativeServiceDef],
fallback: Arc<dyn IoHandler>,
enabled: Option<&[&str]>,
) -> Result<Arc<dyn IoHandler>, String>Expand description
Mount helper: builds an Arc<dyn IoHandler> with enable semantics
(referenced directly by the server-side PluginDef, avoiding per-family
wrapper constructors).
None= full enable (default; existing deployments migrate with zero changes);Some(slice)= subset enable (three-rejection validation identical toNativeServiceRouter::with_enabled).
Some(&[]) corresponds to enabled=false in manifest semantics (the
router is not mounted at all) and never reaches this function; it would
still be truthfully rejected here under the three-rejection rules rather
than silently becoming full enable.