Exclusive ready-only transport borrowed by an application session. Every operation must return without waiting for I/O, a timer or another callback. Operations perform bounded work; poll returns one owning batch respecting TerminalOptions limits. DEADLINE with no error means no input/progress is currently available. Errors remain explicit. submit transfers a complete encoded batch into bounded owned storage, without acknowledging output. flushReady reports exact newly accepted bytes and the retained suffix, using FrameOutput accounting. Acceptance into a bounded host queue may count as progress; physical display is not promised. close must also be nonblocking, idempotent and noexcept. The transport must outlive cleanup, including Application destruction when a session is still active. Calls run on the UI owner thread.
More...
#include <application.hpp>
Exclusive ready-only transport borrowed by an application session. Every operation must return without waiting for I/O, a timer or another callback. Operations perform bounded work; poll returns one owning batch respecting TerminalOptions limits. DEADLINE with no error means no input/progress is currently available. Errors remain explicit. submit transfers a complete encoded batch into bounded owned storage, without acknowledging output. flushReady reports exact newly accepted bytes and the retained suffix, using FrameOutput accounting. Acceptance into a bounded host queue may count as progress; physical display is not promised. close must also be nonblocking, idempotent and noexcept. The transport must outlive cleanup, including Application destruction when a session is still active. Calls run on the UI owner thread.
◆ close()
| virtual std::expected< void, TerminalError > portals::ApplicationReadyTerminal::close |
( |
| ) |
|
|
pure virtualnoexcept |
- Returns
- Success or original cleanup error; no waiting or exceptions.
◆ flushReady()
| virtual TerminalWrite portals::ApplicationReadyTerminal::flushReady |
( |
std::stop_token | stop | ) |
|
|
pure virtual |
- Parameters
-
| stop | Cooperative cancellation signal. |
- Returns
- Exact progress from bounded ready output work and the remaining owned suffix.
◆ pointerCaptureCapabilities()
- Returns
- Host motion/release guarantees; default is no pointer capture. The host must cancel lost sequences explicitly. No I/O or allocation is performed by the default.
◆ pointerMetrics()
| virtual std::expected< void, TerminalError > portals::ApplicationReadyTerminal::pointerMetrics |
( |
bool | usable | ) |
|
|
virtual |
- Parameters
-
| usable | Whether current pixel dimensions are valid for the viewport. |
- Returns
- Success or a host transition error; default requests no work and performs no I/O.
◆ poll()
| virtual TerminalRead portals::ApplicationReadyTerminal::poll |
( |
std::stop_token | stop | ) |
|
|
pure virtual |
- Parameters
-
| stop | Cooperative cancellation signal; never wait for cancellation. |
- Returns
- One ready owning input batch, no input, EOF, stop, or an explicit error.
◆ protocol()
- Parameters
-
| report | Ordered owning protocol report. |
- Returns
- Success or a host transition error; default ignores the report without I/O.
◆ size()
- Returns
- Current nonnegative viewport, or its original error, without waiting.
◆ submit()
| virtual std::expected< void, TerminalError > portals::ApplicationReadyTerminal::submit |
( |
std::string | bytes | ) |
|
|
pure virtual |
- Parameters
-
| bytes | Complete owning transaction; reject before output if it cannot be retained. |
- Returns
- Success after retaining bytes, or the original transport rejection.
The documentation for this class was generated from the following file: