diff options
Diffstat (limited to 'src/pty.rs')
-rw-r--r-- | src/pty.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -71,6 +71,12 @@ impl std::os::fd::AsFd for Pty { } } +impl std::os::fd::AsRawFd for Pty { + fn as_raw_fd(&self) -> std::os::fd::RawFd { + self.0.get_ref().as_raw_fd() + } +} + impl tokio::io::AsyncRead for Pty { fn poll_read( self: std::pin::Pin<&mut Self>, |