pub enum JsInteropError {
TypeConversion {
expected: String,
actual: String,
},
PropertyAccess {
property: String,
message: String,
},
FunctionCall {
function: String,
message: String,
},
PromiseRejection {
promise: String,
reason: String,
},
InvalidJsValue {
expected: String,
details: String,
},
}Expand description
JavaScript interop errors
Variants§
TypeConversion
Type conversion failed
PropertyAccess
Property access failed
FunctionCall
Function call failed
PromiseRejection
Promise rejection
InvalidJsValue
Invalid JsValue
Trait Implementations§
Source§impl Clone for JsInteropError
impl Clone for JsInteropError
Source§fn clone(&self) -> JsInteropError
fn clone(&self) -> JsInteropError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsInteropError
impl Debug for JsInteropError
Source§impl Display for JsInteropError
impl Display for JsInteropError
Source§impl Error for JsInteropError
impl Error for JsInteropError
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<JsInteropError> for WasmError
Convert JsInteropError to WasmError
impl From<JsInteropError> for WasmError
Convert JsInteropError to WasmError
Source§fn from(err: JsInteropError) -> Self
fn from(err: JsInteropError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsInteropError
impl RefUnwindSafe for JsInteropError
impl Send for JsInteropError
impl Sync for JsInteropError
impl Unpin for JsInteropError
impl UnsafeUnpin for JsInteropError
impl UnwindSafe for JsInteropError
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