pub enum ReactProviderPhase {
Pending,
Initializing,
Ready,
Disposing,
Disposed,
Failed,
}Expand description
React provider lifecycle phases.
Models the provider component’s journey from initial render through cleanup. These phases map directly to React effect lifecycle hooks.
Variants§
Pending
Component rendered but effect not yet fired. No WASM handles allocated.
Initializing
Effect fired; runtime and root scope are being initialized. Handles are being allocated but not yet Active.
Ready
Runtime and root scope are Active. Child components can spawn tasks and create sub-scopes.
Disposing
Cleanup effect fired (unmount or StrictMode remount). Active tasks are being cancelled, scopes are draining.
Disposed
All handles released, runtime closed. Terminal state.
Failed
Initialization or disposal failed. Contains error context. Provider should render an error boundary fallback.
Trait Implementations§
Source§impl Clone for ReactProviderPhase
impl Clone for ReactProviderPhase
Source§fn clone(&self) -> ReactProviderPhase
fn clone(&self) -> ReactProviderPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReactProviderPhase
Source§impl Debug for ReactProviderPhase
impl Debug for ReactProviderPhase
Source§impl<'de> Deserialize<'de> for ReactProviderPhase
impl<'de> Deserialize<'de> for ReactProviderPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReactProviderPhase
Source§impl Hash for ReactProviderPhase
impl Hash for ReactProviderPhase
Source§impl PartialEq for ReactProviderPhase
impl PartialEq for ReactProviderPhase
Source§impl Serialize for ReactProviderPhase
impl Serialize for ReactProviderPhase
impl StructuralPartialEq for ReactProviderPhase
Auto Trait Implementations§
impl Freeze for ReactProviderPhase
impl RefUnwindSafe for ReactProviderPhase
impl Send for ReactProviderPhase
impl Sync for ReactProviderPhase
impl Unpin for ReactProviderPhase
impl UnsafeUnpin for ReactProviderPhase
impl UnwindSafe for ReactProviderPhase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).