Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions library/std/src/os/windows/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,14 +437,23 @@ impl CommandExt for process::Command {
}
}

#[unstable(feature = "windows_process_extensions_main_thread_handle", issue = "96723")]
#[stable(
feature = "windows_process_extensions_main_thread_handle",
since = "CURRENT_RUSTC_VERSION"
)]
pub impl(self) trait ChildExt {
/// Extracts the main thread raw handle, without taking ownership
#[unstable(feature = "windows_process_extensions_main_thread_handle", issue = "96723")]
#[stable(
feature = "windows_process_extensions_main_thread_handle",
since = "CURRENT_RUSTC_VERSION"
)]
fn main_thread_handle(&self) -> BorrowedHandle<'_>;
}

#[unstable(feature = "windows_process_extensions_main_thread_handle", issue = "96723")]
#[stable(
feature = "windows_process_extensions_main_thread_handle",
since = "CURRENT_RUSTC_VERSION"
)]
impl ChildExt for process::Child {
fn main_thread_handle(&self) -> BorrowedHandle<'_> {
self.handle.main_thread_handle()
Expand Down
Loading