Enum perseus::errors::ClientInvariantError
source · pub enum ClientInvariantError {
Show 14 variants
RenderCfg,
GlobalState,
IllegalStateRegistration,
GlobalStateDowncast,
InvalidState {
source: Error,
},
NoState,
InitialState,
InitialStateError {
source: Error,
},
ValidLocaleNotProvided {
locale: String,
},
Translations,
RouterMismatch,
WidgetStates,
InvalidWidgetPssEntry,
BadWidgetRouteMatch {
path: String,
},
}
Expand description
Errors that can occur in the browser from certain invariants not being upheld. These should be extremely rare, but, since we don’t control what HTML the browser gets, we avoid panicking in these cases.
Note that some of these invariants may be broken by an app’s own code, such as invalid global state downcasting.
Variants§
RenderCfg
GlobalState
IllegalStateRegistration
GlobalStateDowncast
InvalidState
NoState
InitialState
InitialStateError
ValidLocaleNotProvided
Translations
RouterMismatch
WidgetStates
InvalidWidgetPssEntry
BadWidgetRouteMatch
Trait Implementations§
source§impl Debug for ClientInvariantError
impl Debug for ClientInvariantError
source§impl Display for ClientInvariantError
impl Display for ClientInvariantError
source§impl Error for ClientInvariantError
impl Error for ClientInvariantError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ClientInvariantError> for ClientError
impl From<ClientInvariantError> for ClientError
source§fn from(source: ClientInvariantError) -> Self
fn from(source: ClientInvariantError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientInvariantError
impl Send for ClientInvariantError
impl Sync for ClientInvariantError
impl Unpin for ClientInvariantError
impl !UnwindSafe for ClientInvariantError
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