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(PCWSTR) -> HRESULT),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(PCWSTR) -> HRESULT)

Some value of type T.