Skip to main content

Crate glory_core

Crate glory_core 

Source
Expand description

The platform-independent, owned incremental runtime for Glory.

Reactive values belong to a Runtime and an Owner. Reads track only their immediate consumer; creating a widget does not implicitly subscribe it. Platform adapters supply execution services and consume semantic mutations.

Modules§

executor
Ready-only local tasks for native event-loop and streaming hosts. Futures stay on their creating thread; wakers may be used from worker threads.

Structs§

BindingId
Bond
Cage
Copy, thread-local reactive identity. get returns an owned clone; use with for large collections so indexed reads never clone the whole data set.
GraphStats
Live graph shape. Kind order: Source, Derived, Structure, Binding, Effect. Degree bins: 0, 1, 2, 3-4, 5-8, 9-64, 65+. Snapshotting is opt-in; it performs no user callbacks and adds no persistent per-node counters.
HostError
InstanceId
KeyedEntry
A non-owning entity handle; field aliases belong to their constructing Owner.
KeyedList
Owner-owned, thread-local collection of authoritative values and stable keys. Keys must be pure and fixed for a member’s lifetime. Editing its key field does not rename a member; use remove/insert to establish a new identity.
Owner
Resource
A local Copy handle, invalidated with its Owner. Results use Rc so T/E need neither Clone nor PartialEq. Source reads track only the resource driver; reads in the loader are not dependencies of that driver.
ResourceSeed
Restored terminal data. The caller explicitly decodes the key and result; only a matching initial key suppresses the first request. A refresh always fetches again, including after restoring a business error.
RowToken
A membership identity, unchanged by movement or in-place value replacement. Slots may be reused with a new generation; a complete ID is never reused.
Runtime
Owns one graph and its scheduler. Runtime is intentionally not Clone.
RuntimeId
An application instance, independent of the selected backend.
RuntimeStats
Scope
Task
TaskToken

Enums§

AccessError
ListError
ResourceState
Vary

Traits§

Host
One host owns the event loop. Neither method may synchronously reenter a runtime; spawn queues a future without polling it before returning. Returned cancellation must stop/drop that future. No built-in block_on fallback.

Functions§

untracked
Suppress only reads in this closure. Derived computations still track their own dependencies, and purity checks still apply inside untracked code.

Type Aliases§

LocalFuture