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: RawFd
The master port in a virtual pty pair
slave: RawFd
The slave port in a virtual pty pair
Trait Implementations
sourceimpl Clone for OpenptyResult
impl Clone for OpenptyResult
sourcefn clone(&self) -> OpenptyResult
fn clone(&self) -> OpenptyResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OpenptyResult
impl Debug for OpenptyResult
sourceimpl Hash for OpenptyResult
impl Hash for OpenptyResult
sourceimpl PartialEq<OpenptyResult> for OpenptyResult
impl PartialEq<OpenptyResult> for OpenptyResult
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OpenptyResult) -> bool
fn ne(&self, other: &OpenptyResult) -> bool
This method tests for !=
.
impl Copy for OpenptyResult
impl Eq for OpenptyResult
impl StructuralEq for OpenptyResult
impl StructuralPartialEq for OpenptyResult
Auto Trait Implementations
impl RefUnwindSafe for OpenptyResult
impl Send for OpenptyResult
impl Sync for OpenptyResult
impl Unpin for OpenptyResult
impl UnwindSafe for OpenptyResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more