Skip to main content

ComputeTask

Trait ComputeTask 

Source
pub trait ComputeTask {
    type Output;

    // Required method
    fn run(self, client: Client) -> Self::Output;
}
Expand description

Work to run on whichever runtime a ComputeTarget selects.

Required Associated Types§

Required Methods§

Source

fn run(self, client: Client) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§