Expand description
Output port for rendering command output
This module defines the Presenter trait, the output port in the hexagonal architecture. A
Presenter wraps command execution and controls the output lifecycle. The framework calls
present with the command future, and the presenter runs the command, optionally consuming
events from its event channel, and returns the command’s result.
Presenter adapters implement this trait to provide different rendering strategies. A stateless adapter renders each event as it arrives; a stateful adapter queries a surface on each render frame. The command’s code is identical regardless of which adapter is in use.
Structs§
- Terminal
Presenter - Terminal presenter adapter
Traits§
- Presenter
- Output port for rendering command output