// 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 option::Option; use comm::{GenericPort, GenericChan}; use super::{Reader, Writer}; struct PortReader

; impl> PortReader

{ pub fn new(_port: P) -> PortReader

{ fail!() } } impl> Reader for PortReader

{ fn read(&mut self, _buf: &mut [u8]) -> Option { fail!() } fn eof(&mut self) -> bool { fail!() } } struct ChanWriter; impl> ChanWriter { pub fn new(_chan: C) -> ChanWriter { fail!() } } impl> Writer for ChanWriter { fn write(&mut self, _buf: &[u8]) { fail!() } } struct ReaderPort; impl ReaderPort { pub fn new(_reader: R) -> ReaderPort { fail!() } } impl GenericPort<~[u8]> for ReaderPort { fn recv(&self) -> ~[u8] { fail!() } fn try_recv(&self) -> Option<~[u8]> { fail!() } } struct WriterChan; impl WriterChan { pub fn new(_writer: W) -> WriterChan { fail!() } } impl GenericChan<~[u8]> for WriterChan { fn send(&self, _x: ~[u8]) { fail!() } }