pub trait AppEnumerator: Send + Sync {
// Required method
fn enumerate_apps<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<AppInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
应用枚举器 trait,定义平台原语。 各平台实现通过系统 API 发现已安装应用,插件通过 PluginHandle 委托调用。
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".