pub struct WhiskerModuleError(pub String);Expand description
Failure surface for the #[whisker::module_component]-generated
proxy methods and ElementRef::invoke_typed.
Wraps the UTF-8 description the bridge returned via
WhiskerValue::Error (unknown module / missing method /
platform-side exception), plus type-mismatch messages a proxy
synthesises when the bridge returned an unexpected variant for
the declared return type. Implements std::error::Error so
callers can ?-propagate through Result chains.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for WhiskerModuleError
impl Clone for WhiskerModuleError
Source§fn clone(&self) -> WhiskerModuleError
fn clone(&self) -> WhiskerModuleError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WhiskerModuleError
impl Debug for WhiskerModuleError
Source§impl Display for WhiskerModuleError
impl Display for WhiskerModuleError
impl Eq for WhiskerModuleError
Source§impl Error for WhiskerModuleError
impl Error for WhiskerModuleError
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 PartialEq for WhiskerModuleError
impl PartialEq for WhiskerModuleError
Source§fn eq(&self, other: &WhiskerModuleError) -> bool
fn eq(&self, other: &WhiskerModuleError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WhiskerModuleError
Auto Trait Implementations§
impl Freeze for WhiskerModuleError
impl RefUnwindSafe for WhiskerModuleError
impl Send for WhiskerModuleError
impl Sync for WhiskerModuleError
impl Unpin for WhiskerModuleError
impl UnsafeUnpin for WhiskerModuleError
impl UnwindSafe for WhiskerModuleError
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