An open API service indexing awesome lists of open source software.

https://github.com/sdroege/send-cell

Immutable memory region with runtime Send checking
https://github.com/sdroege/send-cell

concurrency multi-threading rust

Last synced: 9 months ago
JSON representation

Immutable memory region with runtime Send checking

Awesome Lists containing this project

README

          

# send-cell [![crates.io](https://img.shields.io/crates/v/send-cell.svg)](https://crates.io/crates/send-cell) [![Build Status](https://travis-ci.org/sdroege/send-cell.svg?branch=master)](https://travis-ci.org/sdroege/send-cell) [![docs.rs](https://docs.rs/send-cell/badge.svg)](https://docs.rs/send-cell)

**DEPRECATED: This crate is now deprecated in favour of
[fragile](https://crates.io/crates/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](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.