Struct dyon::Thread [] [src]

pub struct Thread {
    pub handle: Option<Arc<Mutex<JoinHandle<Result<VariableString>>>>>,
}

Fields

handle: Option<Arc<Mutex<JoinHandle<Result<VariableString>>>>>

Methods

impl Thread
[src]

fn new(handle: JoinHandle<Result<VariableString>>) -> Thread

fn invalidate_handle(rt: &mut Runtime, var: Variable) -> Result<JoinHandle<Result<VariableString>>, String>

Removes the thread handle from the stack. This is to prevent an extra reference when resolving the variable.

Trait Implementations

impl Clone for Thread
[src]

fn clone(&self) -> Thread

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

impl Debug for Thread
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.