Skip to main content

WSLPluginAPI_PluginError

Type Alias WSLPluginAPI_PluginError 

Source
pub type WSLPluginAPI_PluginError = Option<unsafe extern "C" fn(UserMessage: PCWSTR) -> HRESULT>;
Expand description

Set the error message to display to the user if the VM or distribution creation fails. Must be called synchronously in either OnVMStarted() or OnDistributionStarted().

Aliased Type§

pub enum WSLPluginAPI_PluginError {
    None,
    Some(unsafe extern "C" fn(*const u16) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const u16) -> i32)

Some value of type T.