script_bindings::interfaces

Trait PromiseHelpers

Source
pub trait PromiseHelpers<D: DomTypes> {
    // Required method
    fn new_resolved(
        global: &D::GlobalScope,
        cx: JSContext,
        value: impl ToJSValConvertible,
    ) -> Rc<D::Promise>;
}
Expand description

Operations that must be invoked from the generated bindings.

Required Methods§

Source

fn new_resolved( global: &D::GlobalScope, cx: JSContext, value: impl ToJSValConvertible, ) -> Rc<D::Promise>

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.

Implementors§