On this page
Trait std::os::windows::process::ExitCodeExt
pub trait ExitCodeExt: Sealed {
// Required method
fn from_raw(raw: u32) -> Self;
}
🔬This is a nightly-only experimental API. (
windows_process_exit_code_from
)
Available on Windows only.
Windows-specific extensions to process::ExitCode
.
This trait is sealed: it cannot be implemented outside the standard library. This is so that future additional methods are not breaking changes.
Required Methods
fn from_raw(raw: u32) -> Self
🔬This is a nightly-only experimental API. (
windows_process_exit_code_from
)
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.
Object Safety
This trait is not object safe.
Implementors
impl ExitCodeExt for ExitCode
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/windows/process/trait.ExitCodeExt.html