Skip to main content

load

Function load 

Source
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