|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Move-only UI consumer. Fetch continuation/retry tokens with takeRequest(), then dispatch on a worker. More...
#include <window_source.hpp>
Public Member Functions | |
| WindowConsumer ()=default | |
| Empty closed consumer. | |
| ~WindowConsumer () | |
| Cancel without waiting; outstanding owners retain credit. | |
| WindowConsumer (WindowConsumer &&other) noexcept | |
| Transfer on UI. | |
| WindowConsumer & | operator= (WindowConsumer other) noexcept |
| WindowConsumer (const WindowConsumer &)=delete | |
| std::expected< void, SourceError > | cancel () |
| void | close () noexcept |
| Close on UI; no implicit restart follows explicit cancellation. | |
| std::expected< WindowRequest< T >, SourceError > | request (SourceAnchor anchor, SourceDirection direction, std::size_t viewportRows) |
| std::expected< std::optional< WindowRequest< T > >, SourceError > | takeRequest () |
| std::expected< WindowPin< T >, SourceError > | pin () const |
| std::expected< WindowStatus, SourceError > | status () const |
| std::expected< std::optional< SourceError >, SourceError > | lastError () const |
| std::expected< std::optional< SourceCursor >, SourceError > | recovery () const |
Friends | |
| template<class> | |
| class | WindowSource |
Move-only UI consumer. Fetch continuation/retry tokens with takeRequest(), then dispatch on a worker.
| T | Immutable row value; pins remain readable after consumer/source destruction. |
|
inlinenoexcept |
Transfer on UI.
| other | UI owner to transfer and leave empty; foreign-thread transfer terminates. |
|
inline |
|
inline |
|
inlinenoexcept |
| other | Replacement UI owner. |
|
inline |
|
inline |
|
inline |
| anchor | Provider entry or supported gap/seek operation. |
| direction | Requested traversal direction. |
| viewportRows | Positive layout-derived target, including desired overscan. |
|
inline |
|
inline |