Struct nix::pty::OpenptyResult
source · Expand description
Representation of a master/slave pty pair
This is returned by openpty. Note that this type does not implement Drop, so the user
must manually close the file descriptors.
Fields§
§master: RawFdThe master port in a virtual pty pair
slave: RawFdThe slave port in a virtual pty pair
Trait Implementations§
source§impl Clone for OpenptyResult
impl Clone for OpenptyResult
source§fn clone(&self) -> OpenptyResult
fn clone(&self) -> OpenptyResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OpenptyResult
impl Debug for OpenptyResult
source§impl Hash for OpenptyResult
impl Hash for OpenptyResult
source§impl PartialEq<OpenptyResult> for OpenptyResult
impl PartialEq<OpenptyResult> for OpenptyResult
source§fn eq(&self, other: &OpenptyResult) -> bool
fn eq(&self, other: &OpenptyResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.