pub enum LifecycleError {
Show 18 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),
Accessibility(AccessibilityError),
}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)
Accessibility(AccessibilityError)
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<AccessibilityError> for LifecycleError
impl From<AccessibilityError> for LifecycleError
Source§fn from(source: AccessibilityError) -> Self
fn from(source: AccessibilityError) -> Self
Converts to this type from the input type.
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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