Skip to main content

create_plugin_with_required_capability

Function create_plugin_with_required_capability 

Source
pub fn create_plugin_with_required_capability<T: WSLPluginV1>(
    api: &'static WSLPluginAPIV1,
    capability: WSLVersionCapability,
) -> Result<T>
Expand description

Creates a WSL plugin instance with a specified required API capability.

ยงErrors

Returns a Windows error if the API version is insufficient or the plugin is already initialized.