Skip to main content

Crate euv_core

Crate euv_core 

Source
Expand description

euv

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.

Re-exports§

pub use vdom::*;

Modules§

vdom

Structs§

App
A zero-sized application context struct providing access to core euv framework APIs.
AssertUnwindSafe
A simple wrapper around a type to assert that it is unwind safe.
DefaultHasher
The default Hasher used by RandomState.
ErrorBoundary
A handle that tracks whether a wrapped subtree has thrown.
FireHandle
A handle to a leaked FnMut() closure, stored as the closure’s heap address.
FormState
The aggregate form state.
HookContext
Manages hook state across render cycles for a DynamicNode.
I18n
The aggregate i18n state.
IntervalHandle
A handle to a browser interval timer created by use_interval.
LazyComponent
A lazy component that defers factory invocation until first access.
LruCache
A fixed-capacity LRU cache.
NativeEventHandler
A wrapper around an event callback.
NodeRef
A reactive handle to a mounted DOM element.
ProfileEntry
A single recorded measurement.
ProfilerHandle
A handle to the profiler registered against the current hook context.
ProfilerMark
A begin() marker — RAII guard that records the start timestamp and the label so the matching end() call can compute the elapsed time.
Signal
A reactive signal handle.
SignalCell
A Sync wrapper for single-threaded global Signal access.
SuspenseHandle
A handle that drives a SuspenseState.
TransitionConfig
Configuration for a TransitionState.
TransitionState
The aggregate transition state.
UseAsyncHandle
use_async’s reactive handle, stored in the hook context slot and returned to the user on each render.

Enums§

AsyncState
Discriminant for the three states an use_async future can be in.
ErrorBoundaryPhase
The phase of an ErrorBoundary.
LoadState
The state of a LazyComponent.
SuspensePhase
The phase of a SuspenseState.
TransitionPhase
The four phases of a transition lifecycle.

Traits§

HasLoadingHint
Optional payload for the Loading state.
Hash
A hashable type.
Hasher
A trait for hashing an arbitrary stream of bytes.
HookContextFormExt
Extension trait that exposes the hook-context factory used by App::use_form.
HookContextI18nExt
Extension trait that exposes the hook-context factory used by App::use_i18n.
HookContextTransitionExt
Extension trait that exposes the hook-context factory used by App::use_transition.

Functions§

catch_unwind
Invokes a closure, capturing the cause of an unwinding panic if one occurs.
now_ms
Returns a monotonic millisecond timestamp suitable for profiling measurements.

Type Aliases§

MessageEntry
An entry for I18n::add_messages — a (key, value) pair that the caller usually writes as a single literal array. The tuple form keeps the public API allocation-free for the common “compile-time literal list of pairs” case.
Validator
A single validator closure, used by [FormState::validate].

Derive Macros§

Hash
Derive macro generating an impl of the trait Hash.