Optional synchronous storage seam; no filesystem or scheduler is installed implicitly. Caller owns and serializes this adapter. Invoke load/save on an existing worker when the adapter can block; these functions do not dispatch work or enforce UI affinity. Read/write failures may affect external storage, but cannot alter memory checkpoints or navigation state. Atomic replacement/durability is the adapter's explicit contract.
More...
#include <navigation_checkpoint.hpp>
Optional synchronous storage seam; no filesystem or scheduler is installed implicitly. Caller owns and serializes this adapter. Invoke load/save on an existing worker when the adapter can block; these functions do not dispatch work or enforce UI affinity. Read/write failures may affect external storage, but cannot alter memory checkpoints or navigation state. Atomic replacement/durability is the adapter's explicit contract.
◆ read()
| virtual std::expected< std::size_t, NavigationCheckpointError > portals::NavigationCheckpointStorage::read |
( |
std::span< std::byte > | output, |
|
|
std::stop_token | stop = {} ) |
|
pure virtual |
- Parameters
-
| output | Maximum allowed envelope bytes. |
| stop | Cooperative cancellation. |
- Returns
- Actual bytes read, or typed failure; overflow is rejected by the caller.
◆ write()
| virtual std::expected< void, NavigationCheckpointError > portals::NavigationCheckpointStorage::write |
( |
std::span< const std::byte > | bytes, |
|
|
std::stop_token | stop = {} ) |
|
pure virtual |
- Parameters
-
| bytes | Immutable complete envelope. |
| stop | Cooperative cancellation. |
- Returns
- Successful write or typed storage/cancellation failure.
The documentation for this class was generated from the following file: