diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-08-06 20:45:38 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-08-06 20:45:38 -0400 |
commit | 1e4f4258fadabf349755c41bfb568d4331f8e2a0 (patch) | |
tree | e96edeee86e3afe440b0e7d3fcb81e119a8f089e /src/pty.rs | |
parent | 7d3c64ffd2a21b82ec3b40834af090bb6523ce9b (diff) | |
download | pty-process-1e4f4258fadabf349755c41bfb568d4331f8e2a0.tar.gz pty-process-1e4f4258fadabf349755c41bfb568d4331f8e2a0.zip |
also implement as_raw_fd
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>, |