pub trait InitializeTask<T = Self>where
T: Task,{
// Provided method
fn initialize(
_task: &mut Executable<T>,
_project: &Project,
) -> Result<(), PayloadError<ProjectError>> { ... }
}
Expand description
Trait to implement to initialize a task after it’s been wrapped in an Executable
Provided Methods§
Sourcefn initialize(
_task: &mut Executable<T>,
_project: &Project,
) -> Result<(), PayloadError<ProjectError>>
fn initialize( _task: &mut Executable<T>, _project: &Project, ) -> Result<(), PayloadError<ProjectError>>
Initialize tasks
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.