# Trait std::os::windows::io::IntoRawHandle

1.4.0 · source ·

    pub trait IntoRawHandle {
        // Required method
        fn into_raw_handle(self) -> RawHandle;
    }

Available on Windows only.
Expand description

A trait to express the ability to consume an object and acquire ownership of its raw `HANDLE`.

## Required Methods§

source

#### fn into_raw_handle(self) -> RawHandle

Consumes this object, returning the raw underlying handle.

This function is typically used to transfer ownership of the underlying handle to the caller. When used in this way, callers are then the unique owners of the handle and must close it once it’s no longer needed.

However, transferring ownership is not strictly required. Use a `Into<OwnedHandle>::into` implementation for an API which strictly transfers ownership.

## Implementors§

source§

### impl IntoRawHandle for File

source§

### impl IntoRawHandle for Child

source§

### impl IntoRawHandle for ChildStderr

source§

### impl IntoRawHandle for ChildStdin

source§

### impl IntoRawHandle for ChildStdout

1.63.0 · source§

### impl IntoRawHandle for OwnedHandle

1.9.0 · source§

### impl<T> IntoRawHandle for JoinHandle<T>