Skip to main content

ChildOutTask

Trait ChildOutTask 

Source
pub trait ChildOutTask {
    type Output: Send + 'static;

    // Required method
    fn run(self) -> (Option<BoxedFuture<()>>, Self::Output);
}
Available on crate feature process only.
Expand description

Task created by ChildOutConfig

Required Associated Types§

Source

type Output: Send + 'static

Required Methods§

Source

fn run(self) -> (Option<BoxedFuture<()>>, Self::Output)

Run the task.

The first return value is a future that will be spawned on the runtime and driven internally. The output is accessible by the user.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ChildOutTask for ()

Source§

type Output = ()

Source§

fn run(self) -> (Option<BoxedFuture<()>>, Self::Output)

Implementors§