pub struct OpenptyResult {
pub master: RawFd,
pub slave: RawFd,
}
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§
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 for OpenptyResult
impl PartialEq for OpenptyResult
impl Copy for OpenptyResult
impl Eq for OpenptyResult
impl StructuralPartialEq for OpenptyResult
Auto Trait Implementations§
impl Freeze for OpenptyResult
impl RefUnwindSafe for OpenptyResult
impl Send for OpenptyResult
impl Sync for OpenptyResult
impl Unpin for OpenptyResult
impl UnwindSafe for OpenptyResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more