Skip to main content

TaskCollection

Trait TaskCollection 

Source
pub trait TaskCollection<T>: TaskProvider + Sized {
    // Required method
    fn result(&self) -> T;
}
Expand description

Represents a task that returns a result of the given type.

Required Methods§

Source

fn result(&self) -> T

Gets the result from this task.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§