1 unstable release

Uses old Rust 2015

0.1.0 Feb 16, 2016

#1576 in Data structures

Download history 161/week @ 2024-04-07 218/week @ 2024-04-14 257/week @ 2024-04-21 204/week @ 2024-04-28 203/week @ 2024-05-05 218/week @ 2024-05-12 220/week @ 2024-05-19 198/week @ 2024-05-26 175/week @ 2024-06-02 199/week @ 2024-06-09 304/week @ 2024-06-16 215/week @ 2024-06-23 48/week @ 2024-06-30 154/week @ 2024-07-07 225/week @ 2024-07-14 251/week @ 2024-07-21

679 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