euv-core 0.52.1

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
/// Scheduling priority lane for cross-thread mutations posted to `UiDispatcher`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum DispatchPriority {
    /// Frame-critical input, lifecycle, or high-priority UI state update drained first.
    Critical,
    /// Standard application or network callback UI update.
    #[default]
    Normal,
    /// Low-priority background telemetry, prefetch, or deferred update drained last.
    Background,
}

/// Overflow handling strategy applied when `UiDispatcher` reaches its configured capacity.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum DispatchBackpressurePolicy {
    /// Reject incoming submissions with `DispatchError::QueueFull` once capacity is reached.
    #[default]
    RejectNew,
    /// Evict the oldest lowest-priority queued task to admit the incoming submission.
    DropOldest,
}

/// Error returned when a cross-thread task cannot be accepted by `UiDispatcher`.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum DispatchError {
    /// Bounded queue reached capacity under `DispatchBackpressurePolicy::RejectNew`.
    QueueFull,
    /// Dispatcher has been closed and no longer accepts new tasks.
    Closed,
    /// Underlying queue synchronization primitive was poisoned by an external panic.
    LockPoisoned,
}