pub trait WebGPUPromiseTrait<D: DomTypes> {
// Required method
fn callback_promise(
self: &Rc<Self>,
d: &GPUAdapter<D>,
) -> GenericCallback<WebGPUDeviceResponse>;
}Expand description
The main trait for creating and using promises in script_webgpu.
Required Methods§
fn callback_promise( self: &Rc<Self>, d: &GPUAdapter<D>, ) -> GenericCallback<WebGPUDeviceResponse>
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.