[][src]Struct futures_cputask::ThreadPool

pub struct ThreadPool<P> where
    P: SyncThreadPool + Sized
{ /* fields omitted */ }

Asynchronous threadpool

Wrapper around a Synchronous threadpool to provide futures support.

Methods

impl<P> ThreadPool<P> where
    P: SyncThreadPool + Sized
[src]

pub fn from_threadpool(pool: P) -> Self[src]

Wraps around an existing threadpool instance

pub fn into_inner(self) -> P[src]

Moves the underlying threadpool out

Trait Implementations

impl<P> AsyncThreadPool for ThreadPool<P> where
    P: SyncThreadPool + Sized
[src]

impl<P> From<P> for ThreadPool<P> where
    P: SyncThreadPool + Sized + Eq
[src]

impl<P> Clone for ThreadPool<P> where
    P: SyncThreadPool + Sized + Clone
[src]

impl<P> Eq for ThreadPool<P> where
    Self: PartialEq,
    P: SyncThreadPool + Sized + Eq
[src]

impl<P, Rhs> PartialEq<Rhs> for ThreadPool<P> where
    P: SyncThreadPool + Sized + PartialEq<Rhs>,
    Rhs: ?Sized
[src]

impl<P> Debug for ThreadPool<P> where
    P: SyncThreadPool + Sized + Debug
[src]

Auto Trait Implementations

impl<P> Send for ThreadPool<P> where
    P: Send

impl<P> Sync for ThreadPool<P> where
    P: Send

impl<P> Unpin for ThreadPool<P> where
    P: Unpin

impl<P> UnwindSafe for ThreadPool<P> where
    P: UnwindSafe

impl<P> !RefUnwindSafe for ThreadPool<P>

Blanket Implementations

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]