Struct poison::PoisonGuard [] [src]

pub struct PoisonGuard<'poison, T: ?Sized + 'poison> { /* fields omitted */ }

A poison guard on an associated Poison.

If the current thread panics before this instance is dropped, the Poision will become poisoned when this instance drops.

Methods

impl<'poison, T: ?Sized> PoisonGuard<'poison, T>
[src]

Get an immutable reference to the data.

Get a mutable reference to the data.

Get a reference that escapes the guard.

Should only be used if the data will be externally poisoned.

Get the raw poison guard.

Trait Implementations

impl<'poison, T: Debug + ?Sized + 'poison> Debug for PoisonGuard<'poison, T>
[src]

Formats the value using the given formatter.