pub enum ComponentError {
TypeNotFound(TypeId),
PropsMismatch {
expected: TypeId,
got: TypeId,
},
InvalidPropsType,
InvalidProps(String),
DowncastError,
LockError(String),
InvalidLifecycleTransition(LifecyclePhase, String),
RenderError(String),
UpdateError(String),
MountError(String),
UnmountError(String),
ReactiveSystemError(String),
}
Expand description
Errors that can occur during component operations
Variants§
TypeNotFound(TypeId)
Component type not found in registry
PropsMismatch
Props type mismatch
InvalidPropsType
Invalid props type for the component
InvalidProps(String)
Invalid props content or validation failed
DowncastError
Error downcasting props or component
LockError(String)
Error acquiring lock
InvalidLifecycleTransition(LifecyclePhase, String)
Invalid lifecycle transition
RenderError(String)
Error rendering component
UpdateError(String)
Error updating component
MountError(String)
Error mounting component
UnmountError(String)
Error unmounting component
ReactiveSystemError(String)
Error from reactive system
Trait Implementations§
Source§impl Debug for ComponentError
impl Debug for ComponentError
Source§impl Display for ComponentError
impl Display for ComponentError
Source§impl Error for ComponentError
impl Error for ComponentError
1.30.0 · 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<ComponentError> for TreeError
impl From<ComponentError> for TreeError
Source§fn from(source: ComponentError) -> Self
fn from(source: ComponentError) -> Self
Converts to this type from the input type.
Source§impl From<SignalError> for ComponentError
impl From<SignalError> for ComponentError
Source§fn from(error: SignalError) -> Self
fn from(error: SignalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComponentError
impl RefUnwindSafe for ComponentError
impl Send for ComponentError
impl Sync for ComponentError
impl Unpin for ComponentError
impl UnwindSafe for ComponentError
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