diff options
| author | bors <bors@rust-lang.org> | 2013-10-18 14:16:26 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-18 14:16:26 -0700 |
| commit | 6b07d885f3dd1a80ffca113925a949386371ea97 (patch) | |
| tree | c9a5c2dd24abf0624999b3d877bce2e089ef4111 /src/libstd | |
| parent | a1b25f2f09485ccb3d5ca07e2886a9a6dc9bc16b (diff) | |
| parent | bdcd29c6d0dea5e15c6011033e546176b0925c3a (diff) | |
| download | rust-6b07d885f3dd1a80ffca113925a949386371ea97.tar.gz rust-6b07d885f3dd1a80ffca113925a949386371ea97.zip | |
auto merge of #9935 : reedlepee123/rust/my_new_branch, r=bstrie
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/comm.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs index ec8314795ac..7212635233f 100644 --- a/src/libstd/comm.rs +++ b/src/libstd/comm.rs @@ -50,16 +50,16 @@ pub trait Peekable<T> { fn peek(&self) -> bool; } -pub struct PortOne<T> { x: rtcomm::PortOne<T> } -pub struct ChanOne<T> { x: rtcomm::ChanOne<T> } +pub struct PortOne<T> { priv x: rtcomm::PortOne<T> } +pub struct ChanOne<T> { priv x: rtcomm::ChanOne<T> } pub fn oneshot<T: Send>() -> (PortOne<T>, ChanOne<T>) { let (p, c) = rtcomm::oneshot(); (PortOne { x: p }, ChanOne { x: c }) } -pub struct Port<T> { x: rtcomm::Port<T> } -pub struct Chan<T> { x: rtcomm::Chan<T> } +pub struct Port<T> { priv x: rtcomm::Port<T> } +pub struct Chan<T> { priv x: rtcomm::Chan<T> } pub fn stream<T: Send>() -> (Port<T>, Chan<T>) { let (p, c) = rtcomm::stream(); @@ -153,7 +153,7 @@ impl<T: Send> Peekable<T> for Port<T> { } -pub struct SharedChan<T> { x: rtcomm::SharedChan<T> } +pub struct SharedChan<T> { priv x: rtcomm::SharedChan<T> } impl<T: Send> SharedChan<T> { pub fn new(c: Chan<T>) -> SharedChan<T> { @@ -195,7 +195,7 @@ impl<T> Clone for SharedChan<T> { } } -pub struct SharedPort<T> { x: rtcomm::SharedPort<T> } +pub struct SharedPort<T> { priv x: rtcomm::SharedPort<T> } impl<T: Send> SharedPort<T> { pub fn new(p: Port<T>) -> SharedPort<T> { |
