pub trait PromiseHelpers<D>where
D: DomTypes,{
// Required methods
fn new_in_realm(cx: &mut CurrentRealm<'_>) -> Rc<<D as DomTypes>::Promise>;
fn reject_error(&self, cx: &mut JSContext, error: Error);
}Required Methods§
fn new_in_realm(cx: &mut CurrentRealm<'_>) -> Rc<<D as DomTypes>::Promise>
fn reject_error(&self, cx: &mut JSContext, error: Error)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.