pub trait PlatformHostAdapter:
PlatformBackend
+ PlatformStorage
+ PlatformNavigation
+ PlatformLifecycleBridge {
// Required methods
fn device_form_factor(&self) -> DeviceFormFactor;
fn host_vendor_name(&self) -> &'static str;
}Expand description
Supertrait implemented by full cross-platform host adapters exposing uniform backend, storage, navigation, and lifecycle semantics.
Required Methods§
Sourcefn device_form_factor(&self) -> DeviceFormFactor
fn device_form_factor(&self) -> DeviceFormFactor
Sourcefn host_vendor_name(&self) -> &'static str
fn host_vendor_name(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl PlatformHostAdapter for HarmonyPlatform
PlatformHostAdapter implementation for HarmonyPlatform.
impl PlatformHostAdapter for MiniAppPlatform
PlatformHostAdapter implementation for MiniAppPlatform.
impl PlatformHostAdapter for QuickAppPlatform
PlatformHostAdapter implementation for QuickAppPlatform.
impl PlatformHostAdapter for TerminalPlatform
PlatformHostAdapter implementation for TerminalPlatform.
impl PlatformHostAdapter for WearablePlatform
PlatformHostAdapter implementation for WearablePlatform.