5 releases

Uses old Rust 2015

0.1.4 Jul 27, 2018
0.1.3 Apr 7, 2018
0.1.2 Aug 5, 2017
0.1.1 Aug 5, 2017
0.1.0 Aug 4, 2017

#948 in Concurrency

42 downloads per month

MIT license

13KB
219 lines

send-cell crates.io Build Status docs.rs

DEPRECATED: This crate is now deprecated in favour of fragile. The fragile::Fragile type has essentially the same guarantees and works the same

An immutable memory location that implements Send for types that do not implement it.

Enforcing safety with regard to the Send trait happens at runtime instead of compile time. Accessing the contained value will call panic! if happening from any thread but the thread on which the value was created on. The SendCell can be safely transferred to other threads.

LICENSE

send-cell is licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).

Contribution

Any kinds of contributions are welcome as a pull request.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in send-cell by you shall be licensed under the MIT license as above, without any additional terms or conditions.

Dependencies

~45KB