Struct thread_control::Control
[−]
[src]
pub struct Control { /* fields omitted */ }
Struct to control thread execution.
Methods
impl Control
[src]
fn interrupt(&self)
Interrupt execution of thread. Actually it panics when thread checking flag.
fn stop(&self)
Set stop flag.
fn is_done(&self) -> bool
Return true
if thread ended.
fn is_interrupted(&self) -> bool
Return true
if thread was interrupted or panicked.
Trait Implementations
impl Debug for Control
[src]
impl Clone for Control
[src]
fn clone(&self) -> Control
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