Struct nix::pty::PtyMaster [−][src]
pub struct PtyMaster(_);
Representation of the Master device in a master/slave pty pair
While this datatype is a thin wrapper around RawFd, it enforces that the available PTY
functions are given the correct file descriptor. Additionally this type implements Drop,
so that when it's consumed or goes out of scope, it's automatically cleaned-up.
Trait Implementations
impl Debug for PtyMaster[src]
impl Debug for PtyMasterfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl AsRawFd for PtyMaster[src]
impl AsRawFd for PtyMasterimpl IntoRawFd for PtyMaster[src]
impl IntoRawFd for PtyMasterfn into_raw_fd(self) -> RawFd[src]
fn into_raw_fd(self) -> RawFdConsumes this object, returning the raw underlying file descriptor. Read more
impl Drop for PtyMaster[src]
impl Drop for PtyMaster