1 unstable release

Uses old Rust 2015

0.1.0 Feb 16, 2016

#2236 in Data structures

Download history 369/week @ 2023-12-17 360/week @ 2023-12-24 113/week @ 2023-12-31 168/week @ 2024-01-07 329/week @ 2024-01-14 142/week @ 2024-01-21 100/week @ 2024-01-28 143/week @ 2024-02-04 142/week @ 2024-02-11 195/week @ 2024-02-18 202/week @ 2024-02-25 169/week @ 2024-03-03 235/week @ 2024-03-10 194/week @ 2024-03-17 432/week @ 2024-03-24 468/week @ 2024-03-31

1,334 downloads per month
Used in 202 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