|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Exclusive transport boundary, borrowed by FrameWriter for its lifetime. Implementations own submitted bytes, perform no I/O in submit, and preserve the exact unsent suffix on deadline/stop without an error. An accompanying error marks uncertain progress even on deadline/stop. All errors may have unknown effects. One executor calls all methods; no callbacks or concurrent calls are supported. A successful flush means bytes accepted, not hardware/display acknowledgement. More...
#include <diff.hpp>
Public Member Functions | |
| virtual | ~FrameOutput ()=default |
| Destroy the adapter, without an implicit flush. | |
| virtual std::expected< void, TerminalError > | submit (std::string bytes)=0 |
| Take an owning batch, or reject without output; allocation may throw. | |
| virtual TerminalWrite | flush (TerminalDeadline deadline, std::stop_token stop)=0 |
| Flush the owned suffix; report bytes for this call and total pending. | |
Exclusive transport boundary, borrowed by FrameWriter for its lifetime. Implementations own submitted bytes, perform no I/O in submit, and preserve the exact unsent suffix on deadline/stop without an error. An accompanying error marks uncertain progress even on deadline/stop. All errors may have unknown effects. One executor calls all methods; no callbacks or concurrent calls are supported. A successful flush means bytes accepted, not hardware/display acknowledgement.
|
nodiscardpure virtual |
Flush the owned suffix; report bytes for this call and total pending.
| deadline | Absolute monotonic deadline for this call. |
| stop | Cooperative cancellation request; implementations preserve retryable suffixes when effects are known. |
Implemented in portals::TerminalFrameOutput.
|
nodiscardpure virtual |
Take an owning batch, or reject without output; allocation may throw.
| bytes | Complete encoded transaction, transferred to the transport on success. |
Implemented in portals::TerminalFrameOutput.