Expand description
Shared library for distributed simulation nodes.
Modulesยง
- claim ๐
- config ๐
- core ๐
- realtime ๐
- Realtime subscriptions for node updates and chunk assignments.
- sentinel ๐
- Signed HTTP client for sentinel operations.
- update ๐
- Self-update via GitHub releases.
- utils ๐
- work_
context ๐ - Cached, resolved work context shared across the work items of a chunk.
- worker ๐
Structsยง
- LogEntry
- Log entry for UI display.
- Logging
Guard - Node
Application - Host application metadata attached to node registration requests.
- Node
Config - Configuration loaded from environment variables for the simulation node.
- Node
Config Error - Failure to load startup configuration or establish the persisted node identity.
- Node
Core - Event-driven node controller.
- Node
Events - Owned event stream emitted by a
NodeCore. - Node
Stats - Runtime statistics for UI display.
- Sentinel
Error - Failure communicating with the Sentinel service.
- UiLog
Entry - Unlink
Error - Failure to complete the Node-owned unlink lifecycle.
- Unlink
Outcome - Completed remote and local unlink outcome.
- Update
Error - Errors raised by the self-update flow.
- Work
Batch - A resolved chunk of abstract work items queued for execution.
- Work
Batch Result - Result of executing a whole chunk: one compact result per work item.
- Work
Context - Immutable, resolved work context for one
(job_id, work_context_hash). - Worker
Pool - Thread pool that executes simulation chunks across available CPU cores.
Enumsยง
- Connection
Status - Realtime connection status.
- Local
Identity Outcome - Result of deleting the persisted local node identity.
- LogLevel
- Log level for UI display.
- Node
Core Event - Events emitted by
NodeCore. - Node
State - Node lifecycle state.
- Remote
Unlink Outcome - Result of the remote unlink operation.
- Unlink
Error Category - Stable category for an unlink failure.
Constantsยง
- VERSION
- Crate version.
Functionsยง
- check_
for_ update - Check GitHub releases for a newer version and return the download URL if available.
- init_
headless_ logging - init_
ui_ logging - Initializes UI logging and returns its lifetime guard and event receiver.
- install_
update - Returns
trueif updated andfalseif already on the latest release. - log_dir
- validate_
claim_ token - Validate a claim token format.