[][src]Struct killable_thread::Stopping

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).

Implementations

impl<T> Stopping<T>[src]

pub fn new(handle: StoppableHandle<T>) -> Stopping<T>[src]

Trait Implementations

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for Stopping<T>

impl<T> Send for Stopping<T>

impl<T> Sync for Stopping<T>

impl<T> Unpin for Stopping<T>

impl<T> !UnwindSafe for Stopping<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.