// Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. use prelude::*; use super::super::*; use super::super::support::PathLike; pub struct UnixStream; impl UnixStream { pub fn connect(_path: &P) -> Option { fail2!() } } impl Reader for UnixStream { fn read(&mut self, _buf: &mut [u8]) -> Option { fail2!() } fn eof(&mut self) -> bool { fail2!() } } impl Writer for UnixStream { fn write(&mut self, _v: &[u8]) { fail2!() } fn flush(&mut self) { fail2!() } } pub struct UnixListener; impl UnixListener { pub fn bind(_path: &P) -> Option { fail2!() } } impl Listener for UnixListener { fn listen(self) -> Option { fail2!() } } pub struct UnixAcceptor; impl Acceptor for UnixAcceptor { fn accept(&mut self) -> Option { fail2!() } }