1 unstable release

Uses old Rust 2015

0.1.0 Feb 16, 2016

#1609 in Data structures

Download history 525/week @ 2024-03-29 173/week @ 2024-04-05 224/week @ 2024-04-12 205/week @ 2024-04-19 253/week @ 2024-04-26 204/week @ 2024-05-03 218/week @ 2024-05-10 216/week @ 2024-05-17 204/week @ 2024-05-24 168/week @ 2024-05-31 185/week @ 2024-06-07 258/week @ 2024-06-14 281/week @ 2024-06-21 98/week @ 2024-06-28 103/week @ 2024-07-05 191/week @ 2024-07-12

737 downloads per month
Used in 201 crates (via shared-mutex)

MIT license

8KB
158 lines

poison

Utilities for writing poisoned types.

Documentation

Provides the Poison and RawPoison types for use when implementing structures such as shareable locks that should use poisoning to warn other threads about panicking while holding a guard, which can leave data in an invalid state.

Usage

Use the crates.io repository; add this to your Cargo.toml along with the rest of your dependencies:

[dependencies]
poison = "0.1"

Author

Jonathan Reem is the primary author and maintainer of poison.

License

MIT


lib.rs:

poison

Provides ergonomic poisoning primitives for building poisonable structures.

No runtime deps