[−][src]Struct humthreads::MapThread
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]
Same as Thread::request_shutdown
.
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
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,