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
impl Promising for ()impl Promising for JsErrorimpl Promising for JsValueimpl Promising for Nullimpl Promising for Undefinedimpl Promising for boolimpl Promising for charimpl Promising for f32impl Promising for i16impl Promising for i32impl Promising for i8impl Promising for isizeimpl Promising for u16impl Promising for u32impl Promising for u8impl Promising for usizeimpl<T> Promising for JsNullable<T>impl<T> Promising for JsOption<T>impl<T: ErasableGeneric + Promising, E: ErasableGeneric> Promising for Result<T, E>impl<T: OptionIntoWasmAbi + ErasableGeneric<Repr = JsValue> + Promising> Promising for Option<T>