pub struct PromiseError { /* private fields */ }Expand description
Why a promise of the page was rejected: the name and the message of the error it was rejected with (for a reason that is not an error, an empty name and the reason as text).
Implementations§
Trait Implementations§
Source§impl Clone for PromiseError
impl Clone for PromiseError
Source§impl Debug for PromiseError
impl Debug for PromiseError
Source§impl Display for PromiseError
impl Display for PromiseError
impl Eq for PromiseError
Source§impl Error for PromiseError
impl Error for PromiseError
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<PromiseError> for Error
impl From<PromiseError> for Error
Source§fn from(error: PromiseError) -> Self
fn from(error: PromiseError) -> Self
The error as an I/O error whose payload is the rejection (read it back
with get_ref and downcast_ref::<PromiseError> for its name and
message). The kind follows the name of the DOM exception, so that a
caller can tell a missing item, a refused permission and a cancelled
request apart; any other name is std::io::ErrorKind::Other.
Source§impl PartialEq for PromiseError
impl PartialEq for PromiseError
impl StructuralPartialEq for PromiseError
Auto Trait Implementations§
impl Freeze for PromiseError
impl RefUnwindSafe for PromiseError
impl Send for PromiseError
impl Sync for PromiseError
impl Unpin for PromiseError
impl UnsafeUnpin for PromiseError
impl UnwindSafe for PromiseError
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more