Skip to main content

Crate wowlab_node

Crate wowlab_node 

Source
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.
LoggingGuard
NodeApplication
Host application metadata attached to node registration requests.
NodeConfig
Configuration loaded from environment variables for the simulation node.
NodeConfigError
Failure to load startup configuration or establish the persisted node identity.
NodeCore
Event-driven node controller.
NodeEvents
Owned event stream emitted by a NodeCore.
NodeStats
Runtime statistics for UI display.
SentinelError
Failure communicating with the Sentinel service.
UiLogEntry
UnlinkError
Failure to complete the Node-owned unlink lifecycle.
UnlinkOutcome
Completed remote and local unlink outcome.
UpdateError
Errors raised by the self-update flow.
WorkBatch
A resolved chunk of abstract work items queued for execution.
WorkBatchResult
Result of executing a whole chunk: one compact result per work item.
WorkContext
Immutable, resolved work context for one (job_id, work_context_hash).
WorkerPool
Thread pool that executes simulation chunks across available CPU cores.

Enumsยง

ConnectionStatus
Realtime connection status.
LocalIdentityOutcome
Result of deleting the persisted local node identity.
LogLevel
Log level for UI display.
NodeCoreEvent
Events emitted by NodeCore.
NodeState
Node lifecycle state.
RemoteUnlinkOutcome
Result of the remote unlink operation.
UnlinkErrorCategory
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 true if updated and false if already on the latest release.
log_dir
validate_claim_token
Validate a claim token format.