summaryrefslogtreecommitdiff
path: root/src/pty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty.rs')
-rw-r--r--src/pty.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pty.rs b/src/pty.rs
index ea0e543d..ec250aa7 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -17,8 +17,12 @@ use errno::Errno;
///
/// This is returned by `openpty`. Note that this type does *not* implement `Drop`, so the user
/// must manually close the file descriptors.
+#[derive(Clone, Copy)]
+#[allow(missing_debug_implementations)]
pub struct OpenptyResult {
+ /// The master port in a virtual pty pair
pub master: RawFd,
+ /// The slave port in a virtual pty pair
pub slave: RawFd,
}