rust/src/libstd/sync/mpsc
Alex Crichton b97e1cc28e rollup merge of #23541: aturon/stab-error
This small commit stabilizes the `Error` trait as-is, except that `Send`
and `Debug` are added as constraints. The `Send` constraint is because
most uses of `Error` will be for trait objects, and by default we would
like these objects to be transferrable between threads. The `Debug`
constraint is to ensure that e.g. `Box<Error>` is `Debug`, and because
types that implement `Display` should certainly implement `Debug` in any case.

In the near future we expect to add `Any`-like downcasting features to
`Error`, but this is waiting on some additional
mechanisms (`Reflect`). It will be added before 1.0 via default methods.

[breaking-change]

r? @alexcrichton

Closes #21790
2015-03-23 15:09:08 -07:00
..
blocking.rs int audit - std::sync 2015-02-23 17:16:46 +13:00
mod.rs rollup merge of #23541: aturon/stab-error 2015-03-23 15:09:08 -07:00
mpsc_queue.rs Add : Box<_> or ::Box<_> type annotations to various places. 2015-03-03 20:29:01 +01:00
oneshot.rs int audit - std::sync 2015-02-23 17:16:46 +13:00
select.rs Example -> Examples 2015-03-11 21:11:40 -04:00
shared.rs int audit - std::sync 2015-02-23 17:16:46 +13:00
spsc_queue.rs Add : Box<_> or ::Box<_> type annotations to various places. 2015-03-03 20:29:01 +01:00
stream.rs int audit - std::sync 2015-02-23 17:16:46 +13:00
sync.rs int audit - std::sync 2015-02-23 17:16:46 +13:00