Skip to main content

IntoMountError

Trait IntoMountError 

Source
pub trait IntoMountError {
    // Required method
    fn into_mount_error(self) -> JsValue;
}
Expand description

Convert a component construction error at the browser mounting boundary.

Implement this for a custom portable error when enabling browser rendering. There is deliberately no blanket Display implementation: JavaScript values retain their original identity, and applications choose how to represent a native error to the browser.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoMountError for &str

Source§

impl IntoMountError for Infallible

Source§

impl IntoMountError for String

Implementors§