Struct poison::RawPoison [] [src]

pub struct RawPoison { /* fields omitted */ }

A raw poisoning primitive, can be used to build automatically poisoning structures.

Methods

impl RawPoison
[src]

Create a new RawPoison in a non-poisoned state.

Create a new RawPoison which is already poisoned.

Heal the RawPoison if it is poisoned.

Get a poison lock on this RawPoison.

If the RawPoison is already poisoned, returns PoisonError.

Trait Implementations

impl Debug for RawPoison
[src]

Formats the value using the given formatter.