Trait AsRawHandle

1.0.0 · Source
pub trait AsRawHandle {
    // Required method
    fn as_raw_handle(&self) -> *mut c_void;
}
Expand description

Extracts raw handles.

Required Methods§

1.0.0 · Source

fn as_raw_handle(&self) -> *mut c_void

Extracts the raw handle.

This function is typically used to borrow an owned handle. When used in this way, this method does not pass ownership of the raw handle to the caller, and the handle is only guaranteed to be valid while the original object has not yet been destroyed.

This function may return null, such as when called on Stdin, Stdout, or Stderr when the console is detached.

However, borrowing is not strictly required. See [AsHandle::as_handle] for an API which strictly borrows a handle.

Implementors§

Source§

impl AsRawHandle for feature_extension_for_async_std::fs::File

Source§

impl AsRawHandle for feature_extension_for_async_std::io::Stderr

Source§

impl AsRawHandle for feature_extension_for_async_std::io::Stdin

Source§

impl AsRawHandle for feature_extension_for_async_std::io::Stdout

1.0.0 · Source§

impl AsRawHandle for std::fs::File

1.87.0 · Source§

impl AsRawHandle for PipeReader

1.87.0 · Source§

impl AsRawHandle for PipeWriter

1.21.0 · Source§

impl AsRawHandle for std::io::stdio::Stderr

1.21.0 · Source§

impl AsRawHandle for std::io::stdio::Stdin

1.21.0 · Source§

impl AsRawHandle for std::io::stdio::Stdout

1.63.0 · Source§

impl AsRawHandle for BorrowedHandle<'_>

1.63.0 · Source§

impl AsRawHandle for OwnedHandle

1.2.0 · Source§

impl AsRawHandle for Child

1.2.0 · Source§

impl AsRawHandle for ChildStderr

1.2.0 · Source§

impl AsRawHandle for ChildStdin

1.2.0 · Source§

impl AsRawHandle for ChildStdout

Source§

impl AsRawHandle for Poller

1.35.0 · Source§

impl<'a> AsRawHandle for StderrLock<'a>

1.35.0 · Source§

impl<'a> AsRawHandle for StdinLock<'a>

1.35.0 · Source§

impl<'a> AsRawHandle for StdoutLock<'a>

1.9.0 · Source§

impl<T> AsRawHandle for JoinHandle<T>

Source§

impl<T> AsRawHandle for Waitable<T>
where T: AsRawHandle,

Source§

impl<T> AsRawHandle for ScopedJoinHandle<'_, T>