pub fn load(
config_path: &Utf8Path,
) -> Result<Vec<UserExtensionHost>, UserExtensionError>Expand description
Load user-extension hosts from a config.toml path.
Returns an empty Vec if the path does not exist (the user simply
has not extended the gate). Returns Err only when the file
exists but cannot be read, parsed, or contains invalid pattern(s).
Every entry in the returned vec has its host already validated
at the type level via HostPattern.
ยงErrors
UserExtensionError::Iofor filesystem errors other than not-found.UserExtensionError::Parsefor malformed TOML.UserExtensionError::InvalidPatternsfor invalid patterns; the variant carries every offending entry, not just the first (review pass I6).