more stubs for win pty

This commit is contained in:
Wez Furlong committed 2019-02-16 15:15:51 -08:00
1 parent 1580306138
commit 70a98b63a7
1 file changed
+24
+24
View File
@@ -1,4 +1,5 @@
use failure::Error;
use std::io;
use std::process::{Child, Command};
pub struct MasterPty {}
@@ -24,6 +25,29 @@ impl MasterPty {
pub fn get_size(&self) -> Result<winsize, Error> {
bail!("MasterPty::get_size not implemented")
}
pub fn try_clone(&self) -> Result<Self, Error> {
bail!("MasterPty::try_clone not implemented")
}
pub fn clear_nonblocking(&self) -> Result<(), Error> {
unimplemented!();
}
}
impl io::Write for MasterPty {
fn write(&mut self, buf: &[u8]) -> Result<usize, io::Error> {
unimplemented!();
}
fn flush(&mut self) -> Result<(), io::Error> {
Ok(())
}
}
impl io::Read for MasterPty {
fn read(&mut self, buf: &mut [u8]) -> Result<usize, io::Error> {
unimplemented!();
}
}
impl SlavePty {