Struct promiser::latch::Latch
[−]
[src]
pub struct Latch { /* fields omitted */ }
Methods
impl Latch
[src]
fn new() -> Latch
fn close(&self) -> bool
close latch
fn latched(&self) -> bool
is latch closed?
fn open(&self) -> bool
reopens latch, if necessary; do not use for stateful checks
Trait Implementations
impl Clone for Latch
[src]
fn clone(&self) -> Latch
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more