Trait winapi_util::AsHandleRef

source ·
pub trait AsHandleRef {
    // Required method
    fn as_handle_ref(&self) -> HandleRef;

    // Provided method
    fn as_raw(&self) -> RawHandle { ... }
}
Expand description

Construct borrowed and valid Windows handles from file-like objects.

Required Methods§

source

fn as_handle_ref(&self) -> HandleRef

A borrowed handle that wraps the raw handle of the Self object.

Provided Methods§

source

fn as_raw(&self) -> RawHandle

A convenience routine for extracting a HandleRef from Self, and then extracting a raw handle from the HandleRef.

Implementations on Foreign Types§

source§

impl AsHandleRef for File

source§

impl AsHandleRef for Stderr

source§

impl AsHandleRef for Stdin

source§

impl AsHandleRef for Stdout

source§

impl AsHandleRef for ChildStderr

source§

impl AsHandleRef for ChildStdin

source§

impl AsHandleRef for ChildStdout

source§

impl<'a, T: AsHandleRef> AsHandleRef for &'a T

Implementors§