// Copyright 2019 Brian Gianforcaro
use crate RundownRef;
/// An RAII implementation of a "scoped lock" pattern, but specialized
/// to the needs of run-down protection. When this structure is dropped
/// (falls out of scope), the rundown protection reference that was
/// previously acquired is released.
///
/// This structure is created by the `try_acquire` method on `RundownRef`.
///
/// This type attempts to follow the RAII guidance here:
/// <https://github.com/rust-unofficial/patterns/blob/master/patterns/RAII.md>