Trait AsRawHandle
pub trait AsRawHandle
Extracts raw handles.
Required Methods
fn as_raw_handle(&self) -> RawHandleExtracts 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, orStderrwhen the console is detached.However, borrowing is not strictly required. See
AsHandle::as_handlefor an API which strictly borrows a handle.
Implementors
impl AsRawHandle for BorrowedHandle<'_>impl AsRawHandle for Childimpl AsRawHandle for ChildStderrimpl AsRawHandle for ChildStdinimpl AsRawHandle for ChildStdoutimpl AsRawHandle for Fileimpl AsRawHandle for OwnedHandleimpl AsRawHandle for PipeReaderimpl AsRawHandle for PipeWriterimpl AsRawHandle for Stderrimpl AsRawHandle for Stdinimpl AsRawHandle for Stdoutimpl<'a> AsRawHandle for StderrLock<'a>impl<'a> AsRawHandle for StdinLock<'a>impl<'a> AsRawHandle for StdoutLock<'a>impl<T> AsRawHandle for JoinHandle<T>