Skip to main content

HasTaskLifecycle

Trait HasTaskLifecycle 

Source
pub trait HasTaskLifecycle {
    // Required method
    fn lifecycle(&self) -> &dyn AsyncTaskLifecycle;
}
Expand description

Ingredient: an assembly that can hand out a task-lifecycle port.

Note the return is a &dyn port, not a concrete adapter — that is what keeps any mixin built on this ingredient inside the dependency rule.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§