pub enum LifecycleError {
Show 17 variants
InvalidTransition {
from: LifecycleState,
operation: &'static str,
},
Borrowed,
State(StateError),
Runtime(RuntimeError),
Motion(MotionError),
Reconcile(ReconcileError),
MissingRoot,
MissingSuspendTime,
MissingComponentSubtree(ComponentInstancePath),
MissingVirtualCollection(VirtualCollectionId),
EffectBudget(usize),
StaleEffect {
name: String,
generation: ScriptGeneration,
},
Asset(AssetError),
Transaction(UiTransactionError),
Signal(SignalError),
ElementRef(ElementRefError),
Budget(RuntimeBudgetError),
}Variants§
InvalidTransition
Borrowed
State(StateError)
Runtime(RuntimeError)
Motion(MotionError)
Reconcile(ReconcileError)
MissingRoot
MissingSuspendTime
MissingComponentSubtree(ComponentInstancePath)
MissingVirtualCollection(VirtualCollectionId)
EffectBudget(usize)
StaleEffect
Asset(AssetError)
Transaction(UiTransactionError)
Signal(SignalError)
ElementRef(ElementRefError)
Budget(RuntimeBudgetError)
Trait Implementations§
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AssetError> for LifecycleError
impl From<AssetError> for LifecycleError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<ElementRefError> for LifecycleError
impl From<ElementRefError> for LifecycleError
Source§fn from(source: ElementRefError) -> Self
fn from(source: ElementRefError) -> Self
Converts to this type from the input type.
Source§impl From<LifecycleError> for ScriptViewError
impl From<LifecycleError> for ScriptViewError
Source§fn from(source: LifecycleError) -> Self
fn from(source: LifecycleError) -> Self
Converts to this type from the input type.
Source§impl From<MotionError> for LifecycleError
impl From<MotionError> for LifecycleError
Source§fn from(source: MotionError) -> Self
fn from(source: MotionError) -> Self
Converts to this type from the input type.
Source§impl From<ReconcileError> for LifecycleError
impl From<ReconcileError> for LifecycleError
Source§fn from(source: ReconcileError) -> Self
fn from(source: ReconcileError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeBudgetError> for LifecycleError
impl From<RuntimeBudgetError> for LifecycleError
Source§fn from(source: RuntimeBudgetError) -> Self
fn from(source: RuntimeBudgetError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for LifecycleError
impl From<RuntimeError> for LifecycleError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<SignalError> for LifecycleError
impl From<SignalError> for LifecycleError
Source§fn from(source: SignalError) -> Self
fn from(source: SignalError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for LifecycleError
impl From<StateError> for LifecycleError
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Source§impl From<UiTransactionError> for LifecycleError
impl From<UiTransactionError> for LifecycleError
Source§fn from(source: UiTransactionError) -> Self
fn from(source: UiTransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LifecycleError
impl !Send for LifecycleError
impl !Sync for LifecycleError
impl !UnwindSafe for LifecycleError
impl Freeze for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more