euv-core 0.48.3

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Coarse ownership domain responsible for the lifecycle of a tracked framework resource.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ResourceOwnerKind {
    /// Process-wide singleton runtime infrastructure.
    #[default]
    GlobalRuntime,
    /// Routed page instance identified by `(page_id, generation)`.
    Page,
    /// Dynamically loaded WASM/OTA module instance.
    DynamicModule,
    /// OS window surface generation.
    Surface,
    /// Active audio/video media playback or decoder session.
    MediaSession,
    /// Bounded framework cache (glyph atlas, shaping cache, tile pool).
    RenderCache,
}

/// Framework resource category tracked by `ResourceAccountant`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum TrackedResourceKind {
    /// Retained UI scene graph node.
    #[default]
    SceneNode,
    /// Reactive effect closure bound to a scope.
    ReactiveEffect,
    /// Event or signal subscription handle.
    Subscription,
    /// Scheduled timer or animation ticker.
    Timer,
    /// In-flight asynchronous task or callback.
    AsyncTask,
    /// Dynamically loaded component/page module instance.
    DynamicInstance,
    /// Native OS window, surface, font, or platform handle.
    OsHandle,
    /// GPU texture allocation (atlas, image, or persistent tile layer).
    GpuTexture,
    /// GPU vertex, index, uniform, or staging buffer allocation.
    GpuBuffer,
    /// Bounded CPU or GPU cache allocation.
    CacheAllocation,
}

/// Expected lifecycle retention classification separating intentional caches from leaked objects.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ResourceRetentionClass {
    /// Actively owned by a live foreground/runtime owner.
    #[default]
    Active,
    /// Intentionally retained within a bounded cache or frozen-page retention budget.
    ExpectedRetained,
    /// Owned by a destroyed owner or evicted cache awaiting GPU fence completion before final release.
    PendingFenceRelease,
}