This commit is contained in:
NikVolf 2017-04-18 22:47:00 +03:00
parent 74f270cd4f
commit b379289f53
1 changed files with 11 additions and 0 deletions

View File

@ -217,6 +217,17 @@ impl Io for IpcStream {
}
}
impl IpcStream {
#[allow(unused_variables)]
pub fn shutdown(&self, how: ::std::net::Shutdown) -> io::Result<()> {
if cfg!(not(windows)) {
self.inner.shutdown(how)
} else {
Ok(())
}
}
}
#[cfg(test)]
#[cfg(windows)]
mod tests {