Struct dyon::Thread
[−]
[src]
pub struct Thread { pub handle: Option<Arc<Mutex<JoinHandle<Result<Variable, String>>>>>, }
Fields
handle: Option<Arc<Mutex<JoinHandle<Result<Variable, String>>>>>
Methods
impl Thread
[src]
fn new(handle: JoinHandle<Result<Variable, String>>) -> Thread
[src]
fn invalidate_handle(
rt: &mut Runtime,
var: Variable
) -> Result<JoinHandle<Result<Variable, String>>, String>
[src]
rt: &mut Runtime,
var: Variable
) -> Result<JoinHandle<Result<Variable, String>>, 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
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more