[][src]Struct task_scope::spawn::tokio::SpawnFuture

#[must_use = "do not spawn unless polled"]
pub struct SpawnFuture<F>(_);

A future that spawns the given future on the first poll.

This future is created by spawn function and avaiable when "tokio" feature is enabled.

Trait Implementations

impl<F> FusedFuture for SpawnFuture<F> where
    F: Future + Send + 'static,
    F::Output: Send + 'static, 
[src]

impl<T, F> Future for SpawnFuture<F> where
    F: Future<Output = T> + Send + 'static,
    T: Send + 'static, 
[src]

type Output = JoinHandle<JoinHandle<Result<T, Canceled>>>

The type of value produced on completion.

impl<F> Unpin for SpawnFuture<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for SpawnFuture<F> where
    F: RefUnwindSafe

impl<F> Send for SpawnFuture<F> where
    F: Send

impl<F> Sync for SpawnFuture<F> where
    F: Sync

impl<F> UnwindSafe for SpawnFuture<F> where
    F: UnwindSafe

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> FutureExt for T where
    T: Future + ?Sized
[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.