Struct stoppable_thread::Stopping [] [src]

pub struct Stopping<T> {
    // some fields omitted
}

Guard a stoppable thread

When Stopping is dropped (usually by going out of scope), the contained thread will be stopped.

Note: This does not guarantee that stop() will be called (the original scoped thread was removed from stdlib for this reason).

Methods

impl<T> Stopping<T>

fn new(handle: StoppableHandle<T>) -> Stopping<T>

Trait Implementations

impl<T> Drop for Stopping<T>

fn drop(&mut self)