diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-02-23 01:22:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-02-23 01:52:03 -0500 |
commit | e6a3feb286ed68876a7c9fd9162266f741ca1a32 (patch) | |
tree | 5e1dfd36fe147190320cde9e49a1755e8446e543 /src/command.rs | |
parent | f3e8046eff473aa9bf940b7fbd156cf3dfbfa352 (diff) | |
download | pty-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.rs | 4 |
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() } |