Function guarded

Source
pub fn guarded() -> (Flag, Guard)
Expand description

Create a new guarded flag. The flag obtains when the guard is dropped.