[][src]Struct humthreads::MapThread

pub struct MapThread<T: Send + 'static> { /* fields omitted */ }

Thread handle that maps the return of a join operation.

Methods

impl<T: Send + 'static> MapThread<T>[src]

pub fn join(&self) -> Result<T>[src]

Same as Thread::join but applies a transformation to the join result.

pub fn join_timeout(&self, timeout: Duration) -> Result<T>[src]

Same as Thread::join_timeout but applies a transformation to the join result.

pub fn request_shutdown(&self)[src]

pub fn select_add<'a>(&'a self, select: &mut Select<'a>) -> usize[src]

Add the thread to a Select set.

pub fn select_join(&self, operation: SelectedOperation) -> Result<T>[src]

Completes a join operation that was started by the Select interface.

This method should be used if one of the select operations are used. If the ready familiy of methods is used, use one of the other join methods.

Auto Trait Implementations

impl<T> !Send for MapThread<T>

impl<T> !Sync for MapThread<T>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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