pub trait Promising {
type Resolution;
}Expand description
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.
Required Associated Types§
Sourcetype Resolution
type Resolution
The type that this value resolves to.