Expand description
Controlled BUILD → LAYOUT → PAINT coordination and local reactive state.
Modules§
Structs§
- Accessibility
Diagnostics - Per-native-window health counters. They intentionally contain no private labels, descriptions, or text-field values.
- Accessibility
Snapshot - Action
- An explicitly dispatched asynchronous operation with reactive lifecycle state. The operation is never started merely because the action is read.
- Activation
Route Bridge - Keeps the deliberate application-activation to Router bridge alive.
- Application
- Owns application services, one Tokio runtime, and multiple retained roots. A root’s environment, input/focus, semantics, compositor, frame work, and cancellation scope are window-local; assets, Signals, and Tokio are shared.
- Application
Activation Service - Cloneable application-scoped activation stream.
- Application
Activation Subscription - Owns one activation listener for as long as it should remain subscribed.
- Application
Diagnostics - Aggregate lifecycle and stale-command diagnostics for an application.
- Application
Shell Request Id - Application
Shell Service - Budget
Statistics - Build
Context - Framework-controlled build scope for declarative roots. It intentionally exposes no element IDs or scheduler handles. Signals use the runtime’s scoped collector while a builder executes; reads outside a build simply return the current value and create no dependency.
- Claimed
Restoration Scope - Live claim on one stable restoration scope path. Dropping releases the
path so a later mount may claim it; see
RestorationHandle::claim_scope. - Editing
Diagnostics - Effect
- An owner-mounted side effect. Effects never run as part of a widget build;
Effect::mountqueues the initial run for the runtime’s reactive phase. - Event
Target - File
Dialog Request - Awaitable typed result for one native file dialog.
- File
Dialog Service - Cloneable, window-associated application service for native file dialogs.
Requests contain no native parent handle; the desktop host resolves the
WindowIdto the real parent only when it starts the native dialog. - File
Restoration Store - File-backed default persistence store. A new snapshot is completely flushed to a temporary sibling and then renamed into place. On platforms where replacement cannot be atomic, the rename fails rather than deleting the only known-good file; the next mutation may retry it. This guarantees that a reported failed save never overwrites the previous valid snapshot, while filesystem/power-loss durability remains platform/filesystem-specific.
- Focus
Diagnostics - Debug-facing focus state without exposing native event-loop details.
- Frame
History - Fixed-capacity ring of recent frames. Capacity is clamped to
[300, 1000]; insertion never allocates beyond the initial buffer. - Frame
Record - One observed frame: identity, timings, work counters, budget verdict.
- Frame
Statistics - Bounded statistics over retained frame history.
- Frame
Stats - Frame
Timings - Monotonic per-phase CPU durations for exactly one frame, in microseconds.
- Frame
Work - Structural work executed during one frame (deltas, not totals).
- Global
Shortcut Registration - RAII ownership of one active native global shortcut.
- Global
Shortcut Registration Request - Global
Shortcut Request Id - Global
Shortcut Service - Global
Shortcut Unregistration Request - GpuResource
Summary - Shared and per-window GPU residency snapshot reported by the adapter
without rendering. Plain integers only — like
RenderFrameMetrics, platform adapters convert backend-specific statistics into this compact snapshot so the runtime never depends on a particular GPU backend. Shared counts describe the device-owned caches;local_*counts describe the queried window’s retained bindings. Cumulative rasterized and eviction counters sit alongside current residency so tests and hosts can separate what is retained now from what has happened. - GpuSample
- Optional non-blocking GPU timing sample forwarded by the adapter.
- HotPatch
- A compiled patch produced by the build driver for one running process.
- HotPatch
Error - The patch library could not be loaded into the process.
- InMemory
Restoration Store - Deterministic store for tests and embedding. It also supports injected write failures so crash-safety behaviour can be verified without a real user directory.
- Lifecycle
Transition - A lifecycle update normalized by a platform adapter.
- LogBatch
- Records drained from the queue plus how many were dropped since the last drain.
- LogQueue
- Bounded drop-oldest queue. Public so hosts and tests can own private instances.
- LogRecord
- One queued application log record.
- Memo
- A lazily evaluated, cached value derived from one or more
super::Signals or other reactive values. - Memory
Application Shell Adapter - Memory
File Dialog Adapter - Deterministic in-memory host for headless integration tests and custom embedders. Scripted outcomes are consumed FIFO and the adapter records the exact portable requests it received.
- Memory
Global Shortcut Adapter - Deterministic native-side adapter for tests and non-OS embedders.
- Native
Application Shell Completion - Native
Application Shell Request - Native
File Dialog Completion - Completion returned by a desktop host on the application’s UI/event-loop thread. Late completions are rejected by request/window identity.
- Native
File Dialog Request - Native-handle-free request passed from the runtime to a desktop host.
- Native
Global Shortcut Completion - Native
Global Shortcut Request - Native
Operation Request - Awaitable result of one native platform operation.
- Notification
Handle - Outlet
Id - Identity of one
RouteOutlet, for actionable error data and host bookkeeping. Assigned once per outlet; sibling outlets sharing one tree never collide. - Performance
Hub - Shared, observable view of the latest
PerformanceSnapshot. - Performance
Profiler - Per-application profiling coordinator. Lives off the hot path except for
one
recordcall per frame. - Performance
Snapshot - Machine-readable aggregate of everything the framework measured. Produced only on demand; building one allocates and is never done in the hot path.
- Render
Frame Metrics - Renderer-reported metrics for exactly one presented or skipped frame. Platform adapters convert backend-specific statistics into this compact snapshot so the runtime never depends on a particular GPU backend.
- Restorable
- A typed, opt-in persistent value built on the existing local
Signalprimitive. Mutations through this wrapper update the snapshot; an ordinarySignalstays non-persistent by default. - Restoration
Config - Stable configuration for an opt-in application restoration session.
- Restoration
Diagnostics - Value-free restoration health and write-coalescing diagnostics.
- Restoration
Handle - Cloneable UI-thread capability for explicit restoration actions. It is safe to retain in callbacks: operations update only the in-memory declarative snapshot and schedule normal Tokio-backed persistence work.
- Restoration
Store Error - Error reported by a persistence store. Store errors are diagnostics, not application-fatal failures.
- Route
Focus State - Remembers which element was focused per route and restores it on return.
- Route
Outlet - Mounts one
Navigatoras presentation-aware stack content. - Route
Task Binding - Couples one task scope to one navigation route lifetime.
- Runtime
- Retained application execution, input dispatch and frame coordination.
- Runtime
Diagnostics - Diagnostics of Incular/Tokio integration, not Tokio’s internal executor.
- Runtime
Error Report - Runtime-level failure report intended for application logging/telemetry hooks. Framework panics never unwind into the native event-loop callback.
- Runtime
Spawner - UI-thread-only helper that launches application work with Incular owner tracking.
- Scheduler
Counters - Aggregated counter snapshot for scheduler/reactivity behavior.
- Screenshot
- A screenshot of an Incular window’s rendered surface.
- Signal
- Shared state. A read in a registered builder subscribes that Element.
- Signal
Registration - Simulation
- A cloneable in-process controller for one Incular application window.
- Task
- A typed UI-observable result of a application task. This wrapper adds ownership
and cancellation metadata; it does not implement
Futureor duplicate Tokio’s join API. - Task
Handle - A cancellation and diagnostics handle for application work tracked by Incular.
It intentionally is not another
JoinHandle: useTokioHandlefor direct Tokio APIs when component ownership is not required. - Task
Scope - Structured Incular ownership for application tasks. Scopes may be associated with a generational element identity; completions verify that identity on the UI thread before running a local callback.
- Text
Cache Snapshot - Transient
Presentation Resolution - Read-only resolved state for one visible semantic transient.
- Tray
Item Handle - UiDispatcher
- Cross-thread dispatcher into the unique UI owner. It is a message sender,
not access to
Runtime, and does not imply a redraw. - Undo
History Controller - A cloneable, widget-independent undo/redo controller for text editing.
- Undo
History State - Observable availability state for an
UndoHistoryController. - Widget
Work Snapshot - Subset of retained-tree counters relevant to invalidation contracts.
- Window
Diagnostics - Debug-facing, native-free state of one retained application window.
- Window
Handle - A thread-safe reference to a generational Incular window. Methods only enqueue data for the UI/event-loop turn; they never touch native state.
- Window
Opener - Cloneable UI-side capability for opening retained windows after startup. It contains no native handle and can be retained by button callbacks; native creation is still queued for the active desktop event-loop callback.
- Window
Performance - Read-only performance view of one retained window.
- Window
Restoration Id - Application-defined identity for a window that should survive a restart. It is intentionally unrelated to the session-local generational window ID.
Enums§
- Action
Dispatch Error - Error returned when an action is dispatched before it has been observed by or mounted into an Incular application.
- Action
Error - Failure from an
Actionoperation or from the Incular task runtime. - Action
State - UI-observable lifecycle state for an
Action. - Application
Lifecycle - Backend-neutral application lifecycle. Desktop adapters may only emit a subset; runtime users must therefore treat transitions as advisory rather than assume every state is observable on every platform.
- Async
State - A small application-state value for asynchronous results. It is not an
executor; applications normally store it in a
Signalfrom a UI callback. The error type is application-owned so callers can preserve structured domain failures instead of converting everything to a string or a framework-specific snapshot. - Editable
Signal Kind - File
Dialog Completion Status - Global
Shortcut Completion Status - Last
Window Policy - Policy applied after a close accepts the final visible Incular window.
ExitOnLastWindowis the default so a hidden auxiliary window cannot keep an application alive accidentally.KeepRunningis explicit headless or background-service policy; a native adapter remains free to wait idle. - LogLevel
- Severity of an application log record.
- Native
Application Shell Apply Result - Whether a native shell request finished during the current event-loop turn or will report its result asynchronously through the shell completion sink.
- Native
Application Shell Event - Native
Application Shell Operation - Native
Global Shortcut Operation - Native
Operation Completion Status - Runtime disposition after a backend reports one native completion.
- Native
Window Command - A portable UI-thread command emitted by the application for a native desktop adapter. It contains Incular IDs and options only—never Winit IDs, native pointers, or a GPU surface.
- Outlet
Attach Error - Why a nested outlet attachment was rejected.
- Outlet
Error - A route outlet refusing to present.
- Outlet
Placement - How the outlet presents one route, derived from its
RoutePresentation. - Profiler
Mode - How much profiling state the framework retains per frame.
- Resolved
Transient Presentation - Presentation actually selected by the native adapter for one retained transient during its current visible lifetime.
- Simulation
Error - Failure returned by an in-process simulation command.
- Task
Failure - Failure of Tokio-backed work as observed by the UI owner.
- Text
Shortcut Platform - The platform whose
DefaultTextEditingShortcutstable applies to text fields (Flutter’sdefaultTargetPlatform). - Transient
Fallback Reason - Why an
Autotransient is currently using the owning view’s overlay. - Window
Command Enqueue Error - Failure to enqueue a window command into the runtime/UI bridge.
- Window
Error - Failure while creating or addressing an Incular-owned window.
- Window
Placement Error
Constants§
- DEFAULT_
RESTORATION_ DEBOUNCE - Normal local-state debounce. Writes are coalesced and happen on Tokio’s blocking pool, never on an ordinary UI mutation.
- DEFAULT_
RESTORATION_ SNAPSHOT_ LIMIT - A deliberately generous bound for small declarative session state. This is not a database or a place for files, images, credentials, or tokens.
- FRAMEWORK_
RESTORATION_ FORMAT_ VERSION - The Incular-owned snapshot format. It is intentionally independent from the application’s own restoration schema version.
- LOG_
MESSAGE_ LIMIT - Maximum message length in bytes; longer messages are truncated.
- LOG_
QUEUE_ CAPACITY - Maximum queued records before the oldest is dropped.
- MAX_
RESTORATION_ SAVE_ RETRIES - Maximum number of automatic retry attempts after a failed save. Retries use bounded exponential backoff; a new mutation always schedules a normal debounced save regardless of this counter.
- PERFORMANCE_
OVERLAY_ KEY - Widget key that marks the performance-overlay mount point.
- RESTORATION_
RETRY_ BACKOFF - Base delay for the bounded retry backoff.
Traits§
- Restoration
Store - Small persistence boundary for restoration snapshots. Implementations must
leave the previous valid snapshot untouched when
savereturns an error. - Runtime
Wake - Native event-loop wake bridge. Implementations are thread-safe and must never borrow the retained UI runtime directly.
Functions§
- aslr_
reference - Address of the executable’s entry symbol in this process. A build driver subtracts it from the address it recorded at link time to undo address space layout randomization.
- drain_
logs - Drains up to
maxqueued records from the process-wide queue. Backend API for desktop hosts. - log
- Queues an application log record for the DevTools console. Never blocks on
I/O, allocates a bounded amount, and is safe from any thread. No-op without
the
devtoolsfeature. - logs_
pending - True while records remain queued. Backend API for desktop hosts.
- scheduler_
counters - set_
log_ wake - Registers the host callback that wakes the event loop when records are queued. Backend API for desktop hosts.
- sleep
- Completes after
durationon every target: a Tokio timer natively and asetTimeoutin browsers.
Type Aliases§
- Application
Activation Listener - Retained callback for application activations.
- Async
Value - Backwards-compatible task failure state. New application code should use
AsyncState<T, E>with its own error type; this alias is retained for task handles whose cancellation errors are owned by the runtime. - Restorable
Bool - Flutter’s
RestorableBool. - Restorable
BoolN - Flutter’s
RestorableBoolN. - Restorable
Double - Flutter’s
RestorableDouble. - Restorable
DoubleN - Flutter’s
RestorableDoubleN. - Restorable
Int - Flutter’s
RestorableInt. - Restorable
IntN - Flutter’s
RestorableIntN. - Restorable
String - Flutter’s
RestorableString. - Restorable
StringN - Flutter’s
RestorableStringN. - Restorable
Window Factory - Application-owned factory for a persisted auxiliary window kind. It is registered in memory at startup; it is never serialized.
- Restoration
Migration - Application-owned migration invoked before any restored value is exposed to a UI build. It receives the old schema version and the complete JSON document; failures safely fall back to default state.
- Route
Focus Owner - Maps a mounted element to the route that owns it.
- Tokio
Handle - The explicit Tokio handle exposed for advanced libraries. Direct tasks use Tokio/application lifetime; they are not automatically component-scoped.