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]

[src]

Formats the value using the given formatter. Read more

impl AsRawFd for PtyMaster
[src]

[src]

Extracts the raw file descriptor. Read more

impl IntoRawFd for PtyMaster
[src]

[src]

Consumes this object, returning the raw underlying file descriptor. Read more

impl Drop for PtyMaster
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for PtyMaster

impl Sync for PtyMaster