Struct conch_runtime::spawn::Function[][src]

#[must_use = "futures do nothing unless polled"]
pub struct Function<S, E: ?Sized> where
    S: Spawn<E>,
    E: SetArgumentsEnvironment
{ /* fields omitted */ }

A future that represents the execution of a function registered in an environment.

Trait Implementations

impl<S, E: ?Sized> Debug for Function<S, E> where
    S: Spawn<E> + Debug,
    S::EnvFuture: Debug,
    E: SetArgumentsEnvironment,
    E::Args: Debug
[src]

Formats the value using the given formatter. Read more

impl<S, E: ?Sized> EnvFuture<E> for Function<S, E> where
    S: Spawn<E>,
    E: SetArgumentsEnvironment
[src]

The type of value that this future will resolved with if it is successful. Read more

The type of error that this future will resolve with if it fails in a normal fashion. Read more

Behaves identical to Future::poll when polled with a provided environment. Read more

Cancel a future and consider it as completed, thus giving it a chance to run any clean up as if it had resolved on its own. Read more

Pin an environment to this future, allowing the resulting future to be polled from anywhere without needing the caller to specify an environment. Read more

Fuse a future such that poll and cancel will never again be called once it has completed. Read more

Converts the resulting future into a boxed trait object. Read more

Auto Trait Implementations

impl<S, E: ?Sized> Send for Function<S, E> where
    S: Send,
    <E as SetArgumentsEnvironment>::Args: Send,
    <S as Spawn<E>>::EnvFuture: Send

impl<S, E: ?Sized> Sync for Function<S, E> where
    S: Sync,
    <E as SetArgumentsEnvironment>::Args: Sync,
    <S as Spawn<E>>::EnvFuture: Sync