Trait Promising

pub trait Promising

Marker trait for types which represent Resolution or Promise<Resolution>.

For all types except for Promise, Resolution is equal to the type itself. For Promise or any thenable or type extending Promise, Resolution is the type of the promise resolution.

Manually implementing this trait is only required for custom thenables or types which extend Promise. To disable automatic implementation, use the #[wasm_bindgen(no_promising)] attribute.

Associated Types

type Resolution;

The type that this value resolves to.

Implementors