pub trait HalAssets: Send + Sync {
// Required method
fn model_glb<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = HalResult<Option<Vec<u8>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Optional extension: HALs that can supply a 3D model (GLB) of the device.
Required Methods§
fn model_glb<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = HalResult<Option<Vec<u8>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".