pub trait HalApi:
Api
+ 'static
+ WasmNotSendSync {
const VARIANT: Backend;
// Required methods
fn create_instance_from_hal(
name: &str,
hal_instance: Self::Instance,
) -> Instance;
fn instance_as_hal(instance: &Instance) -> Option<&Self::Instance>;
fn hub(global: &Global) -> &Hub<Self>;
fn surface_as_hal(surface: &Surface) -> Option<&Self::Surface>;
}
Required Associated Constants§
Required Methods§
fn create_instance_from_hal( name: &str, hal_instance: Self::Instance, ) -> Instance
fn instance_as_hal(instance: &Instance) -> Option<&Self::Instance>
fn hub(global: &Global) -> &Hub<Self>
fn surface_as_hal(surface: &Surface) -> Option<&Self::Surface>
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.