Struct signalbool::SignalBool
[−]
[src]
pub struct SignalBool(_);
A struct that catches specified signals and sets its internal flag to true
.
Note: any previously-registered signal handlers will be lost.
Methods
impl SignalBool
[src]
fn new(signals: &[Signal], flag: Flag) -> Result<Self>
Register an array of signals to set the internal flag to true when received.
impl SignalBool
[src]
fn reset(&mut self)
Reset the internal flag to false.
fn caught(&self) -> bool
Check whether we've caught a registered signal.
Trait Implementations
impl Clone for SignalBool
[src]
fn clone(&self) -> SignalBool
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