diff options
Diffstat (limited to 'src/libstd/comm.rs')
| -rw-r--r-- | src/libstd/comm.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs index 3118a0c1ba5..16e8b63da81 100644 --- a/src/libstd/comm.rs +++ b/src/libstd/comm.rs @@ -23,7 +23,14 @@ use core::pipes; use core::prelude::*; /// An extension of `pipes::stream` that allows both sending and receiving. -pub struct DuplexStream<T: Owned, U: Owned> { +#[cfg(stage0)] +pub struct DuplexStream<T:Owned, U:Owned> { + priv chan: Chan<T>, + priv port: Port<U>, +} +#[cfg(stage1)] +#[cfg(stage2)] +pub struct DuplexStream<T, U> { priv chan: Chan<T>, priv port: Port<U>, } |
