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§
fn lifecycle(&self) -> &dyn AsyncTaskLifecycle
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".