aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-23 01:22:49 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-23 01:52:03 -0500
commite6a3feb286ed68876a7c9fd9162266f741ca1a32 (patch)
tree5e1dfd36fe147190320cde9e49a1755e8446e543 /src/command.rs
parentf3e8046eff473aa9bf940b7fbd156cf3dfbfa352 (diff)
downloadpty-process-e6a3feb286ed68876a7c9fd9162266f741ca1a32.tar.gz
pty-process-e6a3feb286ed68876a7c9fd9162266f741ca1a32.zip
add async implementations of the pty itself
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.rs b/src/command.rs
index 4679579..96ece15 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -24,6 +24,8 @@ impl<T> Command for T
where
T: CommandImpl,
T::Pty: crate::pty::Pty,
+ <<T as CommandImpl>::Pty as crate::pty::Pty>::Pt:
+ ::std::os::unix::io::AsRawFd,
{
type Child = T::Child;
type Pty = T::Pty;
@@ -82,7 +84,7 @@ impl<C, P> Child<C, P>
where
P: crate::pty::Pty,
{
- pub fn pty(&self) -> &::std::fs::File {
+ pub fn pty(&self) -> &P::Pt {
self.pty.pt()
}