pub enum UiContextError {
Show 36 variants
Borrowed,
MutationDuringRender,
AsyncDuringSuspend,
SubscriptionRequiresEffect,
EventTargetOutsideEvent,
MissingGeneration,
LocaleUnavailable,
ThemeUnavailable,
UnknownMotionToken {
category: &'static str,
role: String,
},
UnknownState {
component: ComponentInstancePath,
field: String,
},
UnknownEvent(String),
InvalidEvent(SchemaValidationError),
MissingWindow,
MissingView,
Window(WindowCommandError),
Responsive(ResponsiveError),
State(StateError),
Store(StoreError),
NativeCollection(NativeCollectionError),
Document(DocumentError),
Action(ActionError),
Capability(CapabilityError),
Async(AsyncRuntimeError),
Locale(LocaleError),
Theme(ThemeError),
Asset(AssetError),
Value(UiValueError),
ValuePath(UiValuePathError),
Signal(SignalError),
ElementRef(ElementRefError),
Geometry(GeometryError),
InvalidScrollOffset {
x: f64,
y: f64,
},
Callback(ScriptCallbackDefinitionError),
Timer(TimerError),
Motion(MotionError),
Budget(RuntimeBudgetError),
}Variants§
Borrowed
MutationDuringRender
AsyncDuringSuspend
SubscriptionRequiresEffect
EventTargetOutsideEvent
MissingGeneration
UnknownMotionToken
UnknownState
UnknownEvent(String)
InvalidEvent(SchemaValidationError)
MissingWindow
MissingView
Window(WindowCommandError)
Responsive(ResponsiveError)
State(StateError)
Store(StoreError)
NativeCollection(NativeCollectionError)
Document(DocumentError)
Action(ActionError)
Capability(CapabilityError)
Async(AsyncRuntimeError)
Locale(LocaleError)
Theme(ThemeError)
Asset(AssetError)
Value(UiValueError)
ValuePath(UiValuePathError)
Signal(SignalError)
ElementRef(ElementRefError)
Geometry(GeometryError)
InvalidScrollOffset
Callback(ScriptCallbackDefinitionError)
Timer(TimerError)
Motion(MotionError)
Budget(RuntimeBudgetError)
Trait Implementations§
Source§impl Debug for UiContextError
impl Debug for UiContextError
Source§impl Display for UiContextError
impl Display for UiContextError
Source§impl Error for UiContextError
impl Error for UiContextError
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<ActionError> for UiContextError
impl From<ActionError> for UiContextError
Source§fn from(source: ActionError) -> Self
fn from(source: ActionError) -> Self
Converts to this type from the input type.
Source§impl From<AssetError> for UiContextError
impl From<AssetError> for UiContextError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<AsyncRuntimeError> for UiContextError
impl From<AsyncRuntimeError> for UiContextError
Source§fn from(source: AsyncRuntimeError) -> Self
fn from(source: AsyncRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<CapabilityError> for UiContextError
impl From<CapabilityError> for UiContextError
Source§fn from(source: CapabilityError) -> Self
fn from(source: CapabilityError) -> Self
Converts to this type from the input type.
Source§impl From<DocumentError> for UiContextError
impl From<DocumentError> for UiContextError
Source§fn from(source: DocumentError) -> Self
fn from(source: DocumentError) -> Self
Converts to this type from the input type.
Source§impl From<ElementRefError> for UiContextError
impl From<ElementRefError> for UiContextError
Source§fn from(source: ElementRefError) -> Self
fn from(source: ElementRefError) -> Self
Converts to this type from the input type.
Source§impl From<GeometryError> for UiContextError
impl From<GeometryError> for UiContextError
Source§fn from(source: GeometryError) -> Self
fn from(source: GeometryError) -> Self
Converts to this type from the input type.
Source§impl From<LocaleError> for UiContextError
impl From<LocaleError> for UiContextError
Source§fn from(source: LocaleError) -> Self
fn from(source: LocaleError) -> Self
Converts to this type from the input type.
Source§impl From<MotionError> for UiContextError
impl From<MotionError> for UiContextError
Source§fn from(source: MotionError) -> Self
fn from(source: MotionError) -> Self
Converts to this type from the input type.
Source§impl From<NativeCollectionError> for UiContextError
impl From<NativeCollectionError> for UiContextError
Source§fn from(source: NativeCollectionError) -> Self
fn from(source: NativeCollectionError) -> Self
Converts to this type from the input type.
Source§impl From<ResponsiveError> for UiContextError
impl From<ResponsiveError> for UiContextError
Source§fn from(source: ResponsiveError) -> Self
fn from(source: ResponsiveError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeBudgetError> for UiContextError
impl From<RuntimeBudgetError> for UiContextError
Source§fn from(source: RuntimeBudgetError) -> Self
fn from(source: RuntimeBudgetError) -> Self
Converts to this type from the input type.
Source§impl From<ScriptCallbackDefinitionError> for UiContextError
impl From<ScriptCallbackDefinitionError> for UiContextError
Source§fn from(source: ScriptCallbackDefinitionError) -> Self
fn from(source: ScriptCallbackDefinitionError) -> Self
Converts to this type from the input type.
Source§impl From<SignalError> for UiContextError
impl From<SignalError> for UiContextError
Source§fn from(source: SignalError) -> Self
fn from(source: SignalError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for UiContextError
impl From<StateError> for UiContextError
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for UiContextError
impl From<StoreError> for UiContextError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<ThemeError> for UiContextError
impl From<ThemeError> for UiContextError
Source§fn from(source: ThemeError) -> Self
fn from(source: ThemeError) -> Self
Converts to this type from the input type.
Source§impl From<TimerError> for UiContextError
impl From<TimerError> for UiContextError
Source§fn from(source: TimerError) -> Self
fn from(source: TimerError) -> Self
Converts to this type from the input type.
Source§impl From<UiValueError> for UiContextError
impl From<UiValueError> for UiContextError
Source§fn from(source: UiValueError) -> Self
fn from(source: UiValueError) -> Self
Converts to this type from the input type.
Source§impl From<UiValuePathError> for UiContextError
impl From<UiValuePathError> for UiContextError
Source§fn from(source: UiValuePathError) -> Self
fn from(source: UiValuePathError) -> Self
Converts to this type from the input type.
Source§impl From<WindowCommandError> for UiContextError
impl From<WindowCommandError> for UiContextError
Source§fn from(source: WindowCommandError) -> Self
fn from(source: WindowCommandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UiContextError
impl !UnwindSafe for UiContextError
impl Freeze for UiContextError
impl Send for UiContextError
impl Sync for UiContextError
impl Unpin for UiContextError
impl UnsafeUnpin for UiContextError
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> DowncastSync for T
impl<T> DowncastSync for T
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