Skip to main content

ChildInTask

Trait ChildInTask 

Source
pub trait ChildInTask {
    // Required method
    fn run(self) -> Option<BoxedFuture<Result<()>>>;
}
Available on crate feature process only.
Expand description

Task created by ChildInConfig

Required Methods§

Source

fn run(self) -> Option<BoxedFuture<Result<()>>>

Run the task.

Return a future that will be spawned internally to drive writing data to the child.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ChildInTask for ()

Implementors§

Source§

impl<B: AsRef<[u8]> + Send + 'static> ChildInTask for WriteTask<B>