Struct thread_control::Flag [] [src]

pub struct Flag { /* fields omitted */ }

Struct to check execution status of spawned thread.

Methods

impl Flag
[src]

Creates new flag.

Creates new Control to control this flag.

Check the flag isn't stopped or interrupted.

Panics

This method panics, if interrupt flag was set.

Check the flag is not stopped and not interrupted Use it if panic is not desirable behavior

Set interrupt flag and drop the instance

Trait Implementations

impl Debug for Flag
[src]

Formats the value using the given formatter.

impl Drop for Flag
[src]

A method called when the value goes out of scope. Read more