Struct stoppable_thread::Stopping [] [src]

pub struct Stopping<T> { /* 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>
[src]

Trait Implementations

impl<T> Drop for Stopping<T>
[src]

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