Skip to main content

ExitCodeExt

Trait ExitCodeExt 

1.101.0 · Source
pub trait ExitCodeExt {
    // Required method
    fn from_raw(raw: u32) -> Self;
}
ⓘ This trait cannot be implemented outside std.
Available on Windows only.
Expand description

Windows-specific extensions to process::ExitCode.

Required Methods§

1.101.0 · Source

fn from_raw(raw: u32) -> Self

Creates a new ExitCode from the raw underlying u32 return value of a process.

The exit code should not be 259, as this conflicts with the STILL_ACTIVE macro returned from the GetExitCodeProcess function to signal that the process has yet to run to completion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

1.101.0 · Source§

impl ExitCodeExt for ExitCode